In RedHat Enterprise Linux you may experience some SELinux errors after a version upgrade.

timestamp hostname setroubleshoot: SELinux is preventing mailmanctl (mailman_mail_t) "add_name" to ./mm_cfg.pyc (lib_t). For complete SELinux messages. run sealert -l 835b8ed6-09fb-4cf2-85aa-9b2be7dafeb5

To fix these issues:

  1. Make sure your selinux-policy is updated.   "yum update selinux-policy"
  2. Restore the SELinux file conditions on the mailman data and executable directories. "restorecon -R -v /var/lib/mailman; restorecon -R -v /usr/lib/mailman"

If you are working with files from an earlier version installed in /var/mailman you must copy them in a method that retains the SELinux files conditions. 

  • Use cp with the -p option to preserve the context. 
  • Use mv as it keeps the context during the move. 
  • Use tar and extract the files into the destination.

MailmanWiki: DOC/SELinux errors after upgrade - RedHat (last edited 2015-02-08 11:05:30 by JimTittsler)