All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH][v2] hostname: do not audit attempts by hostname to read and write dhcpc udp sockets (looks like a leaked fd)
Date: Fri, 27 Sep 2013 15:56:18 -0400	[thread overview]
Message-ID: <5245E2E2.5030307@tresys.com> (raw)
In-Reply-To: <1380270974-24144-1-git-send-email-dominick.grift@gmail.com>

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

      reply	other threads:[~2013-09-27 19:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5245E2E2.5030307@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.