All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 1/4] pcscd: dbus and domain lookup
@ 2016-10-26 17:19 Jason Zaman
  2016-10-26 17:19 ` [refpolicy] [PATCH 2/4] gpg: add new socket paths Jason Zaman
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Jason Zaman @ 2016-10-26 17:19 UTC (permalink / raw)
  To: refpolicy

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(`
-- 
2.7.3

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

end of thread, other threads:[~2016-10-30 18:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [refpolicy] [PATCH 1/4] pcscd: dbus and domain lookup Chris 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.