Blame SOURCES/mailman-update-cfg

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