Skip to contentSkip to conversation

corecmd: Remove fcontext for /etc/sysconfig/libvirtd

PATCH New Garrett Holmstrom 2 participants 2 messages Jun 29, 2016 – Jul 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 corecmd: Remove fcontext for /etc/sysconfig/libvirtd

/etc/sysconfig/libvirtd does not have the executable bit set, so it does not make sense for it to be labelled bin_t. I can't seem to find the reason it was set that way originally.

---
 policy/modules/kernel/corecommands.fc | 1 -
 1 file changed, 1 deletion(-)
policy/modules/kernel/corecommands.fc +0 -1
index e559a40..e96d9c7 100644
@@ -105,7 +105,6 @@ ifdef(`distro_redhat',`
 
 /etc/sysconfig/crond		--	gen_context(system_u:object_r:bin_t,s0)
 /etc/sysconfig/init		--	gen_context(system_u:object_r:bin_t,s0)
-/etc/sysconfig/libvirtd		--	gen_context(system_u:object_r:bin_t,s0)
 /etc/sysconfig/netconsole	--	gen_context(system_u:object_r:bin_t,s0)
 /etc/sysconfig/readonly-root 	--	gen_context(system_u:object_r:bin_t,s0)
 
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 corecmd: Remove fcontext for /etc/sysconfig/libvirtd

Quoted 14 lines · Garrett Holmstrom

/etc/sysconfig/libvirtd does not have the executable bit set, so it does not make sense for it to be labelled bin_t. I can't seem to find the reason it was set that way originally.

---
 policy/modules/kernel/corecommands.fc | 1 -
 1 file changed, 1 deletion(-)
policy/modules/kernel/corecommands.fc +0 -0
index e559a40..e96d9c7 100644

policy/modules/kernel/corecommands.fc ifdef(`distro_redhat',` · line 109

Quoted 6 lines
policy/modules/kernel/corecommands.fc +0 -1
@@ -105,7 +105,6 @@ ifdef(`distro_redhat',`
 
 /etc/sysconfig/crond		--	gen_context(system_u:object_r:bin_t,s0)
 /etc/sysconfig/init		--	gen_context(system_u:object_r:bin_t,s0)
-/etc/sysconfig/libvirtd		--	gen_context(system_u:object_r:bin_t,s0)
 /etc/sysconfig/netconsole	--	gen_context(system_u:object_r:bin_t,s0)
 /etc/sysconfig/readonly-root 	--	gen_context(system_u:object_r:bin_t,s0)

Merged.

Signature · 1 line
Chris PeBenito