Skip to contentSkip to conversation

Extend slim /var/run expression

PATCH New Sven Vermeulen 2 participants 2 messages Sep 25, 2013 – Sep 26, 2013

lore
Share & tools
lore
#0 lore raw

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
index d1f64a0..340f44e 100644
@@ -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
#1 lore raw

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_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 +0 -0
index d1f64a0..340f44e 100644

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