2016-12-30 00:07:21

by guido

[permalink] [raw]
Subject: [refpolicy] [PATCH] xserver: add xkb var library file context

Add the file context for the xkb var library directory.

Signed-off-by: Guido Trentalancia <[email protected]>
---
policy/modules/services/xserver.fc | 2 ++
1 file changed, 2 insertions(+)

diff -pru a/policy/modules/services/xserver.fc b/policy/modules/services/xserver.fc
--- a/policy/modules/services/xserver.fc 2016-12-22 23:12:47.782929703 +0100
+++ b/policy/modules/services/xserver.fc 2016-12-30 01:01:51.796577745 +0100
@@ -79,6 +78,8 @@ HOME_DIR/\.Xauthority.* -- gen_context(s

/usr/sbin/lightdm -- gen_context(system_u:object_r:xdm_exec_t,s0)

+/usr/share/X11/xkb(/.*)? gen_context(system_u:object_r:xkb_var_lib_t,s0)
+
/usr/X11R6/bin/[xgkw]dm -- gen_context(system_u:object_r:xdm_exec_t,s0)
/usr/X11R6/bin/iceauth -- gen_context(system_u:object_r:iceauth_exec_t,s0)
/usr/X11R6/bin/X -- gen_context(system_u:object_r:xserver_exec_t,s0)