All of lore.kernel.org
 help / color / mirror / Atom feed
From: pebenito@ieee.org (Chris PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/4] pcscd: dbus and domain lookup
Date: Sun, 30 Oct 2016 14:21:07 -0400	[thread overview]
Message-ID: <b1b55318-6b81-366e-9a47-00f5aa08a7c8@ieee.org> (raw)
In-Reply-To: <1477502361-20223-1-git-send-email-jason@perfinion.com>

On 10/26/16 13:19, Jason Zaman wrote:
> Allow dbus chat to policykit.
> pcscd needs to lookup the domain that connects to the socket.
>
> type=AVC msg=audit(1477409841.224:12512): avc:  denied  { open } for  pid=16611 comm="pcscd" path="/proc/10610/stat" dev="proc" ino=29254 scontext=system_u:system_r:pcscd_t:s0 tcontext=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 tclass=file permissive=1
> type=AVC msg=audit(1477409841.224:12513): avc:  denied  { getattr } for  pid=16611 comm="pcscd" path="/proc/10610/stat" dev="proc" ino=29254 scontext=system_u:system_r:pcscd_t:s0 tcontext=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 tclass=file permissive=1
> ---
>  pcscd.if | 3 +++
>  pcscd.te | 4 ++++
>  2 files changed, 7 insertions(+)
>
> diff --git a/pcscd.if b/pcscd.if
> index ac7e60c..b5c522d 100644
> --- a/pcscd.if
> +++ b/pcscd.if
> @@ -101,6 +101,9 @@ interface(`pcscd_stream_connect',`
>
>  	files_search_pids($1)
>  	stream_connect_pattern($1, pcscd_var_run_t, pcscd_var_run_t, pcscd_t)
> +
> +	allow pcscd_t $1:dir list_dir_perms;
> +	allow pcscd_t $1:file read_file_perms;
>  ')
>
>  ########################################
> diff --git a/pcscd.te b/pcscd.te
> index 1828900..bcc863c 100644
> --- a/pcscd.te
> +++ b/pcscd.te
> @@ -73,6 +73,10 @@ optional_policy(`
>  	optional_policy(`
>  		hal_dbus_chat(pcscd_t)
>  	')
> +
> +	optional_policy(`
> +		policykit_dbus_chat(pcscd_t)
> +	')
>  ')
>
>  optional_policy(`

Merged.

-- 
Chris PeBenito

      parent reply	other threads:[~2016-10-30 18:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-26 17:19 [refpolicy] [PATCH 1/4] pcscd: dbus and domain lookup Jason Zaman
2016-10-26 17:19 ` [refpolicy] [PATCH 2/4] gpg: add new socket paths Jason Zaman
2016-10-27  7:59   ` Nicolas Iooss
2016-10-26 17:19 ` [refpolicy] [PATCH 3/4] devicekit: fcontext for udisks2 Jason Zaman
2016-10-30 18:21   ` Chris PeBenito
2016-10-26 17:19 ` [refpolicy] [PATCH 4/4] gnome: add gkeyring rules and fcontext Jason Zaman
2016-10-26 22:53   ` Guido Trentalancia
2016-10-27  3:25     ` Jason Zaman
2016-10-30 18:21   ` Chris PeBenito
2016-10-30 18:21 ` 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=b1b55318-6b81-366e-9a47-00f5aa08a7c8@ieee.org \
    --to=pebenito@ieee.org \
    --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.