All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH] Remove optional else block for dhcp ping
@ 2014-12-02 16:27 Steve Lawrence
  2014-12-03 13:14 ` Christopher J. PeBenito
  2014-12-21 10:38 ` Jason Zaman
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Lawrence @ 2014-12-02 16:27 UTC (permalink / raw)
  To: refpolicy

Else blocks with optional statements are not supported in CIL.
Currently, if the pp to CIL compiler comes across one of these in a pp
module, it just drops the block and outputs a warning. Fortunately,
these are very rare. In fact, this is the only place in refpolicy where
an optional else block is used, and it is not clear if it is even
needed. This patch is untested, and is more to spark discussions to see
if there are any thoughts about whether or not this piece of policy is
needed.

Signed-off-by: Steve Lawrence <slawrence@tresys.com>
---
 policy/modules/system/sysnetwork.te | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/sysnetwork.te
index 705496d..ddb5a92 100644
--- a/policy/modules/system/sysnetwork.te
+++ b/policy/modules/system/sysnetwork.te
@@ -195,9 +195,6 @@ optional_policy(`
 optional_policy(`
 	netutils_run_ping(dhcpc_t, dhcpc_roles)
 	netutils_run(dhcpc_t, dhcpc_roles)
-',`
-	allow dhcpc_t self:capability setuid;
-	allow dhcpc_t self:rawip_socket create_socket_perms;
 ')
 
 optional_policy(`
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-21 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02 16:27 [refpolicy] [PATCH] Remove optional else block for dhcp ping Steve Lawrence
2014-12-03 13:14 ` Christopher J. PeBenito
2014-12-21 10:38 ` Jason Zaman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.