Skip to contentSkip to conversation

Label /etc/hosts.allow as net_conf_t

PATCH New Laurent Bigonville 2 participants 2 messages Jun 20, 2018 – Jun 23, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Label /etc/hosts.allow as net_conf_t

From: Laurent Bigonville <[email protected]>

/etc/hosts.deny is labeled as net_conf_t so it makes sense to label hosts.allow the same way

---
 policy/modules/system/sysnetwork.fc | 1 +
 1 file changed, 1 insertion(+)
policy/modules/system/sysnetwork.fc +1 -0
index 91fb5160..cd528938 100644
@@ -16,6 +16,7 @@ ifdef(`distro_debian',`
 /etc/dhcp/dhcpd\.conf	--	gen_context(system_u:object_r:dhcp_etc_t,s0)
 /etc/ethers		--	gen_context(system_u:object_r:net_conf_t,s0)
 /etc/hosts		--	gen_context(system_u:object_r:net_conf_t,s0)
+/etc/hosts\.allow.*	--	gen_context(system_u:object_r:net_conf_t,s0)
 /etc/hosts\.deny.*	--	gen_context(system_u:object_r:net_conf_t,s0)
 /etc/denyhosts.*	--	gen_context(system_u:object_r:net_conf_t,s0)
 /etc/resolv\.conf.*	--	gen_context(system_u:object_r:net_conf_t,s0)
Signature · 1 line
2.18.0.rc2
#1 lore raw

PATCH 1/1 Label /etc/hosts.allow as net_conf_t

Quoted 15 lines · Laurent Bigonville via refpolicy

From: Laurent Bigonville <[email protected]>

/etc/hosts.deny is labeled as net_conf_t so it makes sense to label hosts.allow the same way

---
  policy/modules/system/sysnetwork.fc | 1 +
  1 file changed, 1 insertion(+)
policy/modules/system/sysnetwork.fc +0 -0
index 91fb5160..cd528938 100644

policy/modules/system/sysnetwork.fc ifdef(`distro_debian',` · line 22

Quoted 7 lines
policy/modules/system/sysnetwork.fc +1 -0
@@ -16,6 +16,7 @@ ifdef(`distro_debian',`
  /etc/dhcp/dhcpd\.conf	--	gen_context(system_u:object_r:dhcp_etc_t,s0)
  /etc/ethers		--	gen_context(system_u:object_r:net_conf_t,s0)
  /etc/hosts		--	gen_context(system_u:object_r:net_conf_t,s0)
+/etc/hosts\.allow.*	--	gen_context(system_u:object_r:net_conf_t,s0)
  /etc/hosts\.deny.*	--	gen_context(system_u:object_r:net_conf_t,s0)
  /etc/denyhosts.*	--	gen_context(system_u:object_r:net_conf_t,s0)
  /etc/resolv\.conf.*	--	gen_context(system_u:object_r:net_conf_t,s0)

Merged.

Signature · 1 line
Chris PeBenito