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