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