even postfix isnt selinux compliant
thanks goodness for selinux permissive mode
Summary:
SELinux is preventing postalias (postfix_master_t) "write" to ./aliases.db (etc_t).
Detailed Description:
SELinux is preventing postalias (postfix_master_t) "write" to ./aliases.db (etc_t). The SELinux type etc_t, is a generic type for all files in the directory and very few processes (SELinux Domains) are allowed to write to this SELinux type. This type of denial usual indicates a mislabeled file. By default a file created in a directory has the gets the context of the parent directory, but SELinux policy has rules about the creation of directories, that say if a process running in one SELinux Domain (D1) creates a file in a directory with a particular SELinux File Context (F1) the file gets a different File Context (F2). The policy usually allows the SELinux Domain (D1) the ability to write, unlink, and append on (F2).
But if for some reason a file (./aliases.db) was created with the wrong context, this domain will be denied. The usual solution to this problem is to reset the file context on the target file, restorecon -v './aliases.db'. If the file context does not change from etc_t, then this is probably a bug in policy.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against the selinux-policy package. If it does change, you can try your application again to see if it works. The file context could have been mislabeled by editing the file or moving the file from a different directory, if the file keeps getting mislabeled, check the init scripts to see if they are doing something to mislabel the file.
Additional Information:
Source Context user_u:system_r:postfix_master_t Target Context user_u:object_r:etc_t Target Objects ./aliases.db [ file ] Source postalias Source Path /usr/sbin/postalias Port