Skip to contentSkip to conversation

netutils: Label iptstate as netutils_t

PATCH New Luis Ressel 2 participants 2 messages Dec 9, 2016 – Dec 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netutils: Label iptstate as netutils_t

Quoted 1 line

From the package description: "IP Tables State displays states being kept

by iptables in a top-like format". The netutils_t permission set fits it snugly.

---
 policy/modules/admin/netutils.fc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
policy/modules/admin/netutils.fc +2 -1
index a4672cae..f5be3f95 100644
@@ -11,7 +11,8 @@
 
 /usr/sbin/arping	--	gen_context(system_u:object_r:netutils_exec_t,s0)
 /usr/sbin/fping 	--	gen_context(system_u:object_r:ping_exec_t,s0)
-/usr/sbin/traceroute.*	--	gen_context(system_u:object_r:traceroute_exec_t,s0)
 /usr/sbin/hping2	--	gen_context(system_u:object_r:ping_exec_t,s0)
+/usr/sbin/iptstate	--	gen_context(system_u:object_r:netutils_exec_t,s0)
 /usr/sbin/send_arp	--	gen_context(system_u:object_r:ping_exec_t,s0)
 /usr/sbin/tcpdump	--	gen_context(system_u:object_r:netutils_exec_t,s0)
+/usr/sbin/traceroute.*	--	gen_context(system_u:object_r:traceroute_exec_t,s0)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 netutils: Label iptstate as netutils_t

Quoted 12 lines · Luis Ressel via refpolicy
Quoted 1 line

From the package description: "IP Tables State displays states being kept

by iptables in a top-like format". The netutils_t permission set fits it snugly.

---
 policy/modules/admin/netutils.fc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
policy/modules/admin/netutils.fc +0 -0
index a4672cae..f5be3f95 100644

policy/modules/admin/netutils.fc line 18

Quoted 9 lines
policy/modules/admin/netutils.fc +2 -1
@@ -11,7 +11,8 @@
 
 /usr/sbin/arping	--	gen_context(system_u:object_r:netutils_exec_t,s0)
 /usr/sbin/fping 	--	gen_context(system_u:object_r:ping_exec_t,s0)
-/usr/sbin/traceroute.*	--	gen_context(system_u:object_r:traceroute_exec_t,s0)
 /usr/sbin/hping2	--	gen_context(system_u:object_r:ping_exec_t,s0)
+/usr/sbin/iptstate	--	gen_context(system_u:object_r:netutils_exec_t,s0)
 /usr/sbin/send_arp	--	gen_context(system_u:object_r:ping_exec_t,s0)
 /usr/sbin/tcpdump	--	gen_context(system_u:object_r:netutils_exec_t,s0)
+/usr/sbin/traceroute.*	--	gen_context(system_u:object_r:traceroute_exec_t,s0)

Merged.

Signature · 1 line
Chris PeBenito