commit: 34e87a577d7e36e88dfa19bd013b25d78637247a
Author: Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Tue Oct 25 15:42:24 2016 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 15:48:16 2016 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=34e87a57
pcscd: look up the pid that is connecting
pcscd tries to look at the pid of the process that is connecting to its
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
policy/modules/contrib/pcscd.if | 3 +++
1 file changed, 3 insertions(+)
diff --git a/policy/modules/contrib/pcscd.if b/policy/modules/contrib/pcscd.if
index ac7e60c..b5c522d 100644
--- a/policy/modules/contrib/pcscd.if
+++ b/policy/modules/contrib/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;
')
########################################