All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 1/2] DHCPC daemon init network interface, try 2
@ 2010-12-20 22:28 gizmo at giz-works.com
  2010-12-20 22:32 ` Dominick Grift
  2010-12-20 22:35 ` Dominick Grift
  0 siblings, 2 replies; 3+ messages in thread
From: gizmo at giz-works.com @ 2010-12-20 22:28 UTC (permalink / raw)
  To: refpolicy

From: Chris Richards <gizmo@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@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

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

* [refpolicy] [PATCH 1/2] DHCPC daemon init network interface, try 2
  2010-12-20 22:28 [refpolicy] [PATCH 1/2] DHCPC daemon init network interface, try 2 gizmo at giz-works.com
@ 2010-12-20 22:32 ` Dominick Grift
  2010-12-20 22:35 ` Dominick Grift
  1 sibling, 0 replies; 3+ messages in thread
From: Dominick Grift @ 2010-12-20 22:32 UTC (permalink / raw)
  To: refpolicy

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/20/2010 11:28 PM, gizmo at giz-works.com wrote:
> From: Chris Richards <gizmo@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@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">

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0P2ZgACgkQMlxVo39jgT8cygCgoCYMrt1mGooBPAk8crEL91kQ
8nIAoJnjNzdlkvE+iKupWWzj4Jn02Z2m
=afFS
-----END PGP SIGNATURE-----

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

* [refpolicy] [PATCH 1/2] DHCPC daemon init network interface, try 2
  2010-12-20 22:28 [refpolicy] [PATCH 1/2] DHCPC daemon init network interface, try 2 gizmo at giz-works.com
  2010-12-20 22:32 ` Dominick Grift
@ 2010-12-20 22:35 ` Dominick Grift
  1 sibling, 0 replies; 3+ messages in thread
From: Dominick Grift @ 2010-12-20 22:35 UTC (permalink / raw)
  To: refpolicy

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/20/2010 11:28 PM, gizmo at giz-works.com wrote:
> From: Chris Richards <gizmo@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@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 };
> +')

This is, in my experience, usually a side effect is stream connect. but
i cannot find any "sysnet_stream_connect_dhcpc_stream_connect". can this
be dontaudited without losing functionality?

> +########################################
> +## <summary>
>  ##	Read and write dhcp configuration files.
>  ## </summary>
>  ## <param name="domain">

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0P2iAACgkQMlxVo39jgT9TwwCgoUKe+ghCdt+UxZP/vOKK//Oq
fyMAoJXu60jT05lVt8ouqxW7utYaor0d
=TPb3
-----END PGP SIGNATURE-----

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20 22:28 [refpolicy] [PATCH 1/2] DHCPC daemon init network interface, try 2 gizmo at giz-works.com
2010-12-20 22:32 ` Dominick Grift
2010-12-20 22:35 ` Dominick Grift

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.