Skip to contentSkip to conversation

postfix

PATCH Carsten Grohmann 1 participant 1 message Sep 29, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi Russel,

the attached patch contain some little changes on your postfix rules. I need the additional rules on my (SuSE) system and I think this changes are not SuSE specific and we could add this to postfix.te

Carsten

Index: postfix.te
===================================================================
RCS file: /cvsroot/selinux/nsa/selinux/policy/domains/program/postfix.te,v retrieving revision 1.5

postfix.te +5 -3
diff -u -r1.5 postfix.te
@@ -70,7 +70,7 @@
 can_exec(postfix_master_t, ls_exec_t)
 allow postfix_master_t sysctl_kernel_t:dir r_dir_perms;
 allow postfix_master_t sysctl_kernel_t:file r_file_perms;
-allow postfix_master_t self:fifo_file rw_file_perms;
+allow postfix_master_t self:fifo_file create_file_perms;
 allow postfix_master_t usr_t:file r_file_perms;
 can_exec(postfix_master_t, { shell_exec_t bin_t postfix_exec_t })
 allow postfix_master_t self:capability { dac_override kill setgid setuid net_bind_service };
@@ -79,14 +79,15 @@
 allow postfix_master_t postfix_public_t:dir rw_dir_perms;
 allow postfix_master_t postfix_private_t:dir rw_dir_perms;
 allow postfix_master_t postfix_private_t:sock_file create_file_perms;
-allow postfix_master_t postfix_private_t:fifo_file getattr;
+allow postfix_master_t postfix_private_t:fifo_file create_file_perms;
 can_network(postfix_master_t)
 allow postfix_master_t smtp_port_t:tcp_socket name_bind;
 allow postfix_master_t postfix_spool_maildrop_t:dir r_dir_perms;
-allow postfix_master_t postfix_prng_t:file getattr;
+allow postfix_master_t postfix_prng_t:file { getattr lock read write };
 allow postfix_master_t postfix_spool_maildrop_t:file getattr;
 allow postfix_master_t privfd:fd use;
 allow postfix_master_t etc_aliases_t:file r_file_perms;
+allow postfix_master_t random_device_t:chr_file { read };
 create_dir_file(postfix_master_t, postfix_spool_flush_t)
 # should not need read, getattr does not matter
 #allow postfix_master_t admin_tty_type:chr_file { getattr read write };
@@ -223,6 +224,7 @@
 allow postfix_pickup_t postfix_spool_maildrop_t:file r_file_perms;
 allow postfix_pickup_t postfix_spool_maildrop_t:file unlink;
 allow postfix_pickup_t self:tcp_socket create_socket_perms;
+allow postfix_pickup_t self:udp_socket { create ioctl };
 
 postfix_public_domain(qmgr)
 allow postfix_qmgr_t postfix_public_t:fifo_file rw_file_perms;