ccdd61
#!/usr/bin/python2
ccdd61
ccdd61
# This script is needed, when SELinux is enabled:
ccdd61
# mailman_mail_t context cannot write to the directory
ccdd61
# @mmdir@/Mailman so when you change mm_cfg.py, 
ccdd61
# mailman cannot create the .pyc
ccdd61
#
ccdd61
# This script is called in the init script, which is run in unconfined_t
ccdd61
# so the .pyc is created and the AVC denial is avoided. (bz#481446)
ccdd61
ccdd61
import py_compile
ccdd61
ccdd61
py_compile.compile("@mmdir@/Mailman/mm_cfg.py")