xauth type

Russell Coker <[email protected]> Sat, 19 Jul 2025 21:36:08 +1000
Newsgroups org.kernel.vger.selinux-refpolicy
Message-ID <3679417.eFTFzoEnKi@xev>
# 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/