areguera / rpms / mailman

Forked from rpms/mailman 4 years ago
Clone

Blame SOURCES/mailman-update-cfg

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