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