]> git.ipfire.org Git - people/stevee/selinux-policy.git/commitdiff
xauth label and module request
authorGuido Trentalancia <guido@trentalancia.com>
Mon, 28 Feb 2011 19:38:01 +0000 (20:38 +0100)
committerChris PeBenito <cpebenito@tresys.com>
Wed, 16 Mar 2011 12:41:35 +0000 (08:41 -0400)
When starting the X server from the console (using the startx script
that is being shipped with package xinit from X.Org), a few more
permissions are needed from the reference policy.

The label is for a file created by the startx script (from X.Org) and
the module being requested is ipv6 (which can be disabled by other
means).

policy/modules/services/xserver.fc
policy/modules/services/xserver.te

index 6f1e3c76dd40bd040fe300e3e93b04199ae7fc06..abfa1b2ad00822c6bf6d10bd3b3d332723b59510 100644 (file)
@@ -8,6 +8,7 @@ HOME_DIR/\.fonts\.cache-.* --   gen_context(system_u:object_r:user_fonts_cache_t,s
 HOME_DIR/\.ICEauthority.* --   gen_context(system_u:object_r:iceauth_home_t,s0)
 HOME_DIR/\.xauth.*     --      gen_context(system_u:object_r:xauth_home_t,s0)
 HOME_DIR/\.Xauthority.*        --      gen_context(system_u:object_r:xauth_home_t,s0)
+HOME_DIR/\.serverauth.*        --      gen_context(system_u:object_r:xauth_home_t,s0)
 
 #
 # /dev
index 169657bf7c7eaefe8b10996053f63ca24a40611d..7faea288bcc0148bfd12f1620f87e3226cb89bcf 100644 (file)
@@ -270,6 +270,8 @@ domain_use_interactive_fds(xauth_t)
 files_read_etc_files(xauth_t)
 files_search_pids(xauth_t)
 
+kernel_request_load_module(xauth_t)
+
 fs_getattr_xattr_fs(xauth_t)
 fs_search_auto_mountpoints(xauth_t)