Extend slim /var/run expression
PATCH 1/1 Extend slim /var/run expression
On Gentoo, slim files are not in /var/run/slim, but directly in /var/run. All names start with slim though, so changing the expression to match those as well.
There is already a file transition in place (xdm_t writing files in var_run_t -> xdm_var_run_t) so that needs no further changes.
--- policy/modules/services/xserver.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
policy/modules/services/xserver.fc +1 -1
@@ -107,7 +107,7 @@ ifndef(`distro_debian',` /var/run/lxdm\.auth -- gen_context(system_u:object_r:xdm_var_run_t,s0) /var/run/lxdm\.pid -- gen_context(system_u:object_r:xdm_var_run_t,s0) /var/run/lxdm(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0) -/var/run/slim(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0) +/var/run/slim.* gen_context(system_u:object_r:xdm_var_run_t,s0) /var/run/xauth(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0) /var/run/xdmctl(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0)
Signature · 1 line
1.8.1.5
PATCH 1/1 Extend slim /var/run expression
Quoted 19 lines · Sven Vermeulen
On Gentoo, slim files are not in
/var/run/slim, but directly in/var/run. All names start with slim though, so changing the expression to match those as well.There is already a file transition in place (
xdm_twriting files invar_run_t->xdm_var_run_t) so that needs no further changes.Reported-by Luis Ressel <[email protected]>Signed-off-by Sven Vermeulen <[email protected]>--- policy/modules/services/xserver.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)policy/modules/services/xserver.fc +0
-0
policy/modules/services/xserver.fc ifndef(`distro_debian',` · line 113
Quoted 8 lines
policy/modules/services/xserver.fc +1
-1@@ -107,7 +107,7 @@ ifndef(`distro_debian',` /var/run/lxdm\.auth -- gen_context(system_u:object_r:xdm_var_run_t,s0) /var/run/lxdm\.pid -- gen_context(system_u:object_r:xdm_var_run_t,s0) /var/run/lxdm(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0) -/var/run/slim(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0) +/var/run/slim.* gen_context(system_u:object_r:xdm_var_run_t,s0) /var/run/xauth(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0) /var/run/xdmctl(/.*)? gen_context(system_u:object_r:xdm_var_run_t,s0)
Merged.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com