[refpolicy] [PATCH 1/2] DHCPC daemon init network interface, try 2

gizmo at giz-works.com gizmo at giz-works.com
Mon Dec 20 16:28:58 CST 2010


From: Chris Richards <gizmo at giz-works.com>

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

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

diff --git a/policy/modules/system/sysnetwork.if b/policy/modules/system/sysnetwork.if
index 8e71fb7..2fa6d98 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_dhcpc_stream_sockets',`
+	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">
-- 
1.7.3.2



More information about the refpolicy mailing list