selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris PeBenito <pebenito@ieee.org>
To: "Sugar, David" <dsugar@tresys.com>,
	"selinux-refpolicy@vger.kernel.org" 
	<selinux-refpolicy@vger.kernel.org>
Subject: Re: [PATCH 1/1] Resolve denial about logging to journal from chkpwd
Date: Sun, 24 Mar 2019 14:38:50 -0400	[thread overview]
Message-ID: <341ca3ea-cd56-05d6-58fc-7afbf48be9ed@ieee.org> (raw)
In-Reply-To: <20190321182844.27557-1-dsugar@tresys.com>

On 3/21/19 2:29 PM, Sugar, David wrote:
> type=AVC msg=audit(1553029357.588:513): avc:  denied  { sendto } for  pid=7577 comm="unix_chkpwd" path="/dev/log" scontext=toor_u:staff_r:chkpwd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=0
> 
> Signed-off-by: Dave Sugar <dsugar@tresys.com>
> ---
>   policy/modules/system/authlogin.te | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/policy/modules/system/authlogin.te b/policy/modules/system/authlogin.te
> index 2b7586a2..d0c71285 100644
> --- a/policy/modules/system/authlogin.te
> +++ b/policy/modules/system/authlogin.te
> @@ -144,6 +144,11 @@ ifdef(`distro_ubuntu',`
>   	')
>   ')
>   
> +ifdef(`init_systemd',`
> +	# for journald /dev/log
> +	kernel_dgram_send(chkpwd_t)
> +')
> +
>   optional_policy(`
>   	# apache leaks file descriptors
>   	apache_dontaudit_rw_tcp_sockets(chkpwd_t)

Merged.

-- 
Chris PeBenito

      parent reply	other threads:[~2019-03-24 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 18:29 [PATCH 1/1] Resolve denial about logging to journal from chkpwd Sugar, David
2019-03-21 18:29 ` [PATCH 1/1] Resolve denial about logging to journal from dbus Sugar, David
2019-03-24 18:39   ` Chris PeBenito
2019-03-24 18:38 ` Chris 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=341ca3ea-cd56-05d6-58fc-7afbf48be9ed@ieee.org \
    --to=pebenito@ieee.org \
    --cc=dsugar@tresys.com \
    --cc=selinux-refpolicy@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).