postfix virtual delivery patch
Attached is a patch to the current selinux userland archive. It adds two lines into postfix.te to allow virtual domain delivery to work and one line in postfix.fc to relabel /usr/lib/postfix/virtual.
For some reason when it tries to apply the patch section for selinux-usr/policy/file_contexts/program/postfix.fc it says that it can not find the file but if you type in the exact same thing when it prompts you it will work.
Timothy,
Signature · 2 lines
I put instant coffee in a microwave and almost went back in time. -- Steven Wright
policy/domains/program/unused/postfix.te +3 -0
@@ -150,6 +151,9 @@ allow postfix_local_t postfix_public_t:sock_file write; can_exec(postfix_local_t, shell_exec_t) +postfix_server_domain(virtual, `, mta_delivery_agent') +allow postfix_virtual_t postfix_spool_t:file rw_file_perms; + define(`postfix_public_domain',` postfix_server_domain($1) allow postfix_$1_t postfix_public_t:dir search;
policy/file_contexts/program/postfix.fc +1 -0
@@ -13,6 +13,7 @@ /usr/lib/postfix/smtpd system_u:object_r:postfix_smtpd_exec_t /usr/lib/postfix/bounce system_u:object_r:postfix_bounce_exec_t /usr/lib/postfix/pipe system_u:object_r:postfix_pipe_exec_t +/usr/lib/postfix/virtual system_u:object_r:postfix_virtual_exec_t /usr/sbin/postalias system_u:object_r:postfix_master_exec_t /usr/sbin/postcat system_u:object_r:postfix_master_exec_t /usr/sbin/postconf system_u:object_r:postfix_master_exec_t