dirmngr: accept unix stream socket

dirmngr needs to listen and accept on /run/user/1000/gnupg/S.dirmngr

type=AVC msg=audit(1554175286.968:2720907): avc:  denied  { accept } for  pid=15692 comm="dirmngr" path="/run/user/1000/gnupg/S.dirmngr" scontext=staff_u:staff_r:dirmngr_t:s0-s0:c0.c1023 tcontext=staff_u:staff_r:dirmngr_t:s0-s0:c0.c1023 tclass=unix_stream_socket permissive=0

Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
Jason Zaman 2019-12-24 18:10:39 +08:00 committed by Chris PeBenito
parent deb69b3b65
commit c0e77208be

View File

@ -37,6 +37,7 @@ userdom_user_home_content(dirmngr_home_t)
#
allow dirmngr_t self:fifo_file rw_file_perms;
allow dirmngr_t self:unix_stream_socket rw_stream_socket_perms;
allow dirmngr_t dirmngr_conf_t:dir list_dir_perms;
allow dirmngr_t dirmngr_conf_t:file read_file_perms;