thanks goodness for selinux permissive mode
SELinux is preventing postalias (postfix_master_t) “write” to ./aliases.db (etc_t).
[SELinux is in permissive mode, the operation would have been denied but was permitted due to permissive mode.]
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.
Source Context user_u:system_r:postfix_master_t
Target Context user_u:object_r:etc_t
Target Objects ./aliases.db [ file ]
Source Path /usr/sbin/postalias
Source RPM Packages postfix-2.3.3-2.3.el5_6
Target RPM Packages
Policy RPM selinux-policy-2.4.6-327.el5
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Permissive
Plugin Name mislabeled_file
Host Name localhost.localdomain
Platform Linux localhost.localdomain