All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH][v2] hostname: do not audit attempts by hostname to read and write dhcpc udp sockets (looks like a leaked fd)
@ 2013-09-27  8:36 Dominick Grift
  2013-09-27 19:56 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Dominick Grift @ 2013-09-27  8:36 UTC (permalink / raw)
  To: refpolicy


Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
diff --git a/policy/modules/system/hostname.te b/policy/modules/system/hostname.te
index f6cbda9..380197b 100644
--- a/policy/modules/system/hostname.te
+++ b/policy/modules/system/hostname.te
@@ -51,6 +51,7 @@
 
 miscfiles_read_localization(hostname_t)
 
+sysnet_dontaudit_rw_dhcpc_udp_sockets(hostname_t)
 sysnet_dontaudit_rw_dhcpc_unix_stream_sockets(hostname_t)
 sysnet_read_config(hostname_t)
 sysnet_dns_name_resolve(hostname_t)
diff --git a/policy/modules/system/sysnetwork.if b/policy/modules/system/sysnetwork.if
index fb0b50e..6df3dbe 100644
--- a/policy/modules/system/sysnetwork.if
+++ b/policy/modules/system/sysnetwork.if
@@ -47,6 +47,25 @@
 
 ########################################
 ## <summary>
+##	Do not audit attempts to read and
+##	write dhcpc udp socket descriptors.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain to not audit.
+##	</summary>
+## </param>
+#
+interface(`sysnet_dontaudit_rw_dhcpc_udp_sockets',`
+	gen_require(`
+		type dhcpc_t;
+	')
+
+	dontaudit $1 dhcpc_t:udp_socket { read write };
+')
+
+########################################
+## <summary>
 ##	Do not audit attempts to use
 ##	the dhcp file descriptors.
 ## </summary>

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

* [refpolicy] [PATCH][v2] hostname: do not audit attempts by hostname to read and write dhcpc udp sockets (looks like a leaked fd)
  2013-09-27  8:36 [refpolicy] [PATCH][v2] hostname: do not audit attempts by hostname to read and write dhcpc udp sockets (looks like a leaked fd) Dominick Grift
@ 2013-09-27 19:56 ` Christopher J. PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher J. PeBenito @ 2013-09-27 19:56 UTC (permalink / raw)
  To: refpolicy

On Fri 27 Sep 2013 04:36:14 AM EDT, Dominick Grift wrote:
>
> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> diff --git a/policy/modules/system/hostname.te b/policy/modules/system/hostname.te
> index f6cbda9..380197b 100644
> --- a/policy/modules/system/hostname.te
> +++ b/policy/modules/system/hostname.te
> @@ -51,6 +51,7 @@
>
>  miscfiles_read_localization(hostname_t)
>
> +sysnet_dontaudit_rw_dhcpc_udp_sockets(hostname_t)
>  sysnet_dontaudit_rw_dhcpc_unix_stream_sockets(hostname_t)
>  sysnet_read_config(hostname_t)
>  sysnet_dns_name_resolve(hostname_t)
> diff --git a/policy/modules/system/sysnetwork.if b/policy/modules/system/sysnetwork.if
> index fb0b50e..6df3dbe 100644
> --- a/policy/modules/system/sysnetwork.if
> +++ b/policy/modules/system/sysnetwork.if
> @@ -47,6 +47,25 @@
>
>  ########################################
>  ## <summary>
> +##	Do not audit attempts to read and
> +##	write dhcpc udp socket descriptors.
> +## </summary>
> +## <param name="domain">
> +##	<summary>
> +##	Domain to not audit.
> +##	</summary>
> +## </param>
> +#
> +interface(`sysnet_dontaudit_rw_dhcpc_udp_sockets',`
> +	gen_require(`
> +		type dhcpc_t;
> +	')
> +
> +	dontaudit $1 dhcpc_t:udp_socket { read write };
> +')
> +
> +########################################
> +## <summary>
>  ##	Do not audit attempts to use
>  ##	the dhcp file descriptors.
>  ## </summary>

Merged.

--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

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

end of thread, other threads:[~2013-09-27 19:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-27  8:36 [refpolicy] [PATCH][v2] hostname: do not audit attempts by hostname to read and write dhcpc udp sockets (looks like a leaked fd) Dominick Grift
2013-09-27 19:56 ` 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.