Skip to contentSkip to conversation

postfix policy

PATCH Carsten Grohmann 1 participant 1 message Aug 9, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi Russel,

some systems have /usr/lib/sendmail as an link to /usr/sbin/sendmail. The attached patch contains the changes. Would you like to add it to your postfix policy?

Greetings

Carsten

mta.fc renamed from mta.orig.fc +1 -0
@@ -1,5 +1,6 @@
 # types for general mail servers
 /usr/sbin/sendmail(.sendmail)?  system_u:object_r:sendmail_exec_t
+/usr/lib/sendmail               system_u:object_r:sendmail_exec_t
 /etc/aliases                    system_u:object_r:etc_aliases_t
 /etc/aliases\.db                system_u:object_r:etc_aliases_t
 /var/spool/mail(/.*)?           system_u:object_r:mail_spool_t
postfix.te renamed from postfix.orig.te +1 -0
@@ -75,6 +75,7 @@
 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 usr_t:file r_file_perms;
+allow postfix_master_t sendmail_exec_t:lnk_file { read };
 can_exec(postfix_master_t, { shell_exec_t bin_t postfix_exec_t })
 # chown is to set the correct ownership of queue dirs
 allow postfix_master_t self:capability { chown dac_override kill setgid setuid net_bind_service };