commit: d3276d612490b7dad0eb6731d49ded1e0761c5ef Author: Laurent Bigonville <bigon <AT> bigon <DOT> be> AuthorDate: Thu Jan 7 15:46:49 2016 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Sat Jan 30 17:16:56 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=d3276d61
Label Xorg server binary correctly on Debian On Debian, /usr/bin/Xorg is only a shell script which executes /usr/lib/xorg/Xorg.wrap, which is a SUID binary wrapper around /usr/lib/xorg/Xorg. policy/modules/services/xserver.fc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/services/xserver.fc b/policy/modules/services/xserver.fc index 619bb9f..a531dba 100644 --- a/policy/modules/services/xserver.fc +++ b/policy/modules/services/xserver.fc @@ -71,6 +71,8 @@ HOME_DIR/\.Xauthority.* -- gen_context(system_u:object_r:xauth_home_t,s0) /usr/bin/Xorg -- gen_context(system_u:object_r:xserver_exec_t,s0) /usr/lib/qt-.*/etc/settings(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0) +/usr/lib/xorg/Xorg -- gen_context(system_u:object_r:xserver_exec_t,s0) +/usr/lib/xorg/Xorg\.wrap -- gen_context(system_u:object_r:xserver_exec_t,s0) /usr/lib/xorg-server/Xorg -- gen_context(system_u:object_r:xserver_exec_t,s0) /usr/lib/xorg-server/Xorg\.wrap -- gen_context(system_u:object_r:xserver_exec_t,s0)
