aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominick Grift <dominick.grift@gmail.com>2012-10-22 13:04:39 +0200
committerSven Vermeulen <sven.vermeulen@siphos.be>2012-10-22 20:12:27 +0200
commit6414c7958ee0073a40e4e364ccccd364df84055b (patch)
tree7c45aa825ff979446a5542b8ab75d82f1c7fba5b /policy/modules/contrib/spamassassin.te
parentTab clean up in the razor file context file (diff)
downloadhardened-refpolicy-6414c7958ee0073a40e4e364ccccd364df84055b.tar.gz
hardened-refpolicy-6414c7958ee0073a40e4e364ccccd364df84055b.tar.bz2
hardened-refpolicy-6414c7958ee0073a40e4e364ccccd364df84055b.zip
Changes to the razor policy module and relevant dependencies
Module clean up Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
Diffstat (limited to 'policy/modules/contrib/spamassassin.te')
-rw-r--r--policy/modules/contrib/spamassassin.te12
1 files changed, 10 insertions, 2 deletions
diff --git a/policy/modules/contrib/spamassassin.te b/policy/modules/contrib/spamassassin.te
index 9d6cdbbc3..e141309bc 100644
--- a/policy/modules/contrib/spamassassin.te
+++ b/policy/modules/contrib/spamassassin.te
@@ -1,4 +1,4 @@
-policy_module(spamassassin, 2.5.4)
+policy_module(spamassassin, 2.5.5)
########################################
#
@@ -50,6 +50,9 @@ type spamd_t;
type spamd_exec_t;
init_daemon_domain(spamd_t, spamd_exec_t)
+type spamd_home_t;
+userdom_user_home_content(spamd_home_t)
+
type spamd_spool_t;
files_type(spamd_spool_t)
@@ -86,7 +89,7 @@ manage_files_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
manage_lnk_files_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
manage_fifo_files_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
manage_sock_files_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
-userdom_user_home_dir_filetrans(spamassassin_t, spamassassin_home_t, { dir file lnk_file sock_file fifo_file })
+userdom_user_home_dir_filetrans(spamassassin_t, spamassassin_home_t, dir, ".spamassassin")
manage_dirs_pattern(spamassassin_t, spamassassin_tmp_t, spamassassin_tmp_t)
manage_files_pattern(spamassassin_t, spamassassin_tmp_t, spamassassin_tmp_t)
@@ -300,6 +303,11 @@ allow spamd_t self:tcp_socket create_stream_socket_perms;
allow spamd_t self:udp_socket create_socket_perms;
allow spamd_t self:netlink_route_socket r_netlink_socket_perms;
+manage_dirs_pattern(spamd_t, spamd_home_t, spamd_home_t)
+manage_files_pattern(spamd_t, spamd_home_t, spamd_home_t)
+manage_lnk_files_pattern(spamd_t, spamd_home_t, spamd_home_t)
+userdom_user_home_dir_filetrans(spamd_t, spamd_home_t, dir, ".spamd")
+
manage_dirs_pattern(spamd_t, spamd_spool_t, spamd_spool_t)
manage_files_pattern(spamd_t, spamd_spool_t, spamd_spool_t)
files_spool_filetrans(spamd_t, spamd_spool_t, { file dir })