From: Russell Coker <russell@coker.com.au>
To: SELinux Reference Policy mailing list
<selinux-refpolicy@vger.kernel.org>
Subject: xauth type
Date: Sat, 19 Jul 2025 21:36:08 +1000 [thread overview]
Message-ID: <3679417.eFTFzoEnKi@xev> (raw)
# sesearch -T -D xauth_home_t
type_transition auditadm_su_t user_home_dir_t:file xauth_home_t;
type_transition secadm_su_t user_home_dir_t:file xauth_home_t;
type_transition staff_su_t user_home_dir_t:file xauth_home_t;
type_transition sysadm_su_t user_home_dir_t:file xauth_home_t;
type_transition user_su_t user_home_dir_t:file xauth_home_t;
type_transition xauth_t user_home_dir_t:file xauth_home_t;
type_transition xauth_t user_tmp_t:file xauth_home_t;
type_transition xdm_t user_home_dir_t:file xauth_home_t .Xauthority;
The above are the transition rules to label xauth files with X11 (xdm, su,
etc).
When running Wayland the window manager does this, kwin uses
/run/user/$UID/xauth_$RAND and GNOME uses
/run/user/$UID/.mutter.XWaylandauth-$RAND and they get labeled as either
user_tmp_t or user_runtime_t neither of which is good and as the filename is
random we can't have a domain transition rule.
The Window manager does many things so having it create all files as
xauth_home_t isn't going to work.
Any suggestions?
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
next reply other threads:[~2025-07-19 11:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-19 11:36 Russell Coker [this message]
2025-07-22 13:03 ` xauth type Chris PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3679417.eFTFzoEnKi@xev \
--to=russell@coker.com.au \
--cc=selinux-refpolicy@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.