All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 1/2] DHCPC daemon init network interface
@ 2010-11-28  8:45 Chris Richards
  2010-12-15 20:02 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Richards @ 2010-11-28  8:45 UTC (permalink / raw)
  To: refpolicy

Allow dhcpcd DHCP Client daemon to start. Add interface to allow
hostname daemon to talk to dhcpcd.

Signed-off-by: Chris Richards <gizmo@giz-works.com>
---
 policy/modules/system/sysnetwork.if |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/policy/modules/system/sysnetwork.if b/policy/modules/system/sysnetwork.if
index 8e71fb7..73bb9e8 100644
--- a/policy/modules/system/sysnetwork.if
+++ b/policy/modules/system/sysnetwork.if
@@ -196,6 +196,24 @@ interface(`sysnet_dbus_chat_dhcpc',`
 
 ########################################
 ## <summary>
+##	Read and write the dhcp client unix
+##      stream socket
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`sysnet_rw_stream_sockets_dhcpc',`
+	gen_require(`
+		type dhcpc_t;
+	')		
+	allow $1 dhcpc_t:unix_stream_socket { read write };
+')
+
+########################################
+## <summary>
 ##	Read and write dhcp configuration files.
 ## </summary>
 ## <param name="domain">
@@ -711,3 +729,4 @@ interface(`sysnet_use_portmap',`
 
 	sysnet_read_config($1)
 ')
+
-- 
1.7.3.2

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

end of thread, other threads:[~2010-12-15 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-28  8:45 [refpolicy] [PATCH 1/2] DHCPC daemon init network interface Chris Richards
2010-12-15 20:02 ` Christopher J. PeBenito

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.