All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH] gpg: manage user runtime socket files and directories
@ 2017-05-21 16:21 Guido Trentalancia
  2017-05-22 23:24 ` Chris PeBenito
  0 siblings, 1 reply; 27+ messages in thread
From: Guido Trentalancia @ 2017-05-21 16:21 UTC (permalink / raw)
  To: refpolicy

Update the gpg module so that it can correctly manage socket files
and directories in the user runtime directories.

Some other minor fixes are also included in this patch.

Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
---
 policy/modules/contrib/gpg.te |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

--- a/policy/modules/contrib/gpg.te	2017-04-26 17:47:20.555423022 +0200
+++ b/policy/modules/contrib/gpg.te	2017-05-21 18:13:36.728343506 +0200
@@ -124,6 +124,8 @@ miscfiles_read_localization(gpg_t)
 
 userdom_use_user_terminals(gpg_t)
 
+userdom_manage_user_runtime_dirs(gpg_t)
+userdom_manage_user_tmp_dirs(gpg_t)
 userdom_manage_user_tmp_files(gpg_t)
 userdom_manage_user_home_content_files(gpg_t)
 userdom_user_home_dir_filetrans_user_home_content(gpg_t, file)
@@ -247,10 +249,14 @@ fs_dontaudit_list_inotifyfs(gpg_agent_t)
 
 miscfiles_read_localization(gpg_agent_t)
 
+userdom_manage_user_runtime_dirs(gpg_agent_t)
+userdom_manage_user_tmp_dirs(gpg_agent_t)
+userdom_manage_user_tmp_files(gpg_agent_t)
+
 userdom_use_user_terminals(gpg_agent_t)
 userdom_search_user_home_dirs(gpg_agent_t)
 userdom_search_user_runtime(gpg_agent_t)
-userdom_user_runtime_filetrans(gpg_agent_t, gpg_agent_tmp_t, dir)
+userdom_user_runtime_filetrans(gpg_agent_t, gpg_agent_tmp_t, { dir file sock_file })
 
 ifdef(`hide_broken_symptoms',`
 	userdom_dontaudit_read_user_tmp_files(gpg_agent_t)
@@ -310,6 +316,7 @@ fs_tmpfs_filetrans(gpg_pinentry_t, gpg_p
 
 can_exec(gpg_pinentry_t, gpg_pinentry_exec_t)
 
+kernel_dontaudit_search_sysctl(gpg_pinentry_t)
 kernel_read_system_state(gpg_pinentry_t)
 
 corecmd_exec_shell(gpg_pinentry_t)
@@ -327,6 +334,7 @@ domain_use_interactive_fds(gpg_pinentry_
 
 files_read_usr_files(gpg_pinentry_t)
 
+fs_dontaudit_getattr_xattr_fs(gpg_pinentry_t)
 fs_dontaudit_list_inotifyfs(gpg_pinentry_t)
 
 auth_use_nsswitch(gpg_pinentry_t)

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

end of thread, other threads:[~2017-06-07  0:03 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-21 16:21 [refpolicy] [PATCH] gpg: manage user runtime socket files and directories Guido Trentalancia
2017-05-22 23:24 ` Chris PeBenito
2017-05-23  1:04   ` Guido Trentalancia
2017-05-23  6:43     ` Dominick Grift
2017-05-23 14:59       ` Guido Trentalancia
2017-05-23  7:06     ` Dominick Grift
2017-05-23 15:12       ` Guido Trentalancia
2017-05-23 15:59         ` Dominick Grift
2017-05-23 17:14           ` Christian Göttsche
2017-05-23 17:19             ` Dominick Grift
2017-05-24  0:18           ` Chris PeBenito
2017-05-24  0:41             ` Guido Trentalancia
2017-05-24  5:36               ` Dominick Grift
2017-05-23 21:20   ` Guido Trentalancia
2017-05-23 21:21   ` [refpolicy] [PATCH v2] " Guido Trentalancia
2017-05-24 16:32     ` [refpolicy] [PATCH v3] " Guido Trentalancia
2017-05-24 17:37       ` Jason Zaman
2017-05-24 17:41         ` Guido Trentalancia
2017-05-24 17:46         ` Guido Trentalancia
2017-05-24 17:49           ` Dominick Grift
2017-05-24 18:05       ` [refpolicy] [PATCH v4] " Guido Trentalancia
2017-06-05  0:42         ` Chris PeBenito
2017-06-05  7:35           ` Dominick Grift
2017-06-05 12:13             ` Chris PeBenito
2017-06-05 12:49               ` Dominick Grift
2017-06-05 14:42           ` [refpolicy] [PATCH v5] " Guido Trentalancia
2017-06-07  0:03             ` 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.