Skip to contentSkip to conversation

DHCPC daemon init network interface

PATCH New Chris Richards 2 participants 2 messages Nov 28, 2010 – Dec 15, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 DHCPC daemon init network interface

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

---
 policy/modules/system/sysnetwork.if |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
policy/modules/system/sysnetwork.if +19 -0
index 8e71fb7..73bb9e8 100644
@@ -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)
 ')
+
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 1/2 DHCPC daemon init network interface

Quoted 16 lines · Chris Richards

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

---
 policy/modules/system/sysnetwork.if |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
policy/modules/system/sysnetwork.if +0 -0
index 8e71fb7..73bb9e8 100644
@@ -196,6 +196,24 @@ interface(`sysnet_dbus_chat_dhcpc',`
 
 ########################################
 ## <summary>

policy/modules/system/sysnetwork.if interface(`sysnet_dbus_chat_dhcpc',` · line 208

Quoted 10 lines
policy/modules/system/sysnetwork.if +10 -0
+##	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',`

sysnet_rw_dhcpc_stream_sockets()

Quoted 16 lines
policy/modules/system/sysnetwork.if +9 -0
+	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)
 ')
+
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com