[Mailman-Users] mm_cfg.py in /usr : SELinux problem

Daniel Novotny dnovotny at redhat.com
Thu Apr 2 13:55:35 CEST 2009

----- "Mark Sapiro" <mark at msapiro.net> wrote:

> I understand your issue with mm_cfg. All I can suggest is symlinks
> might help. I thought the current RedHat package currently has a
> symlink /etc/mm_cfg.py -> /usr/lib/mailman/Mailman/mm_cfg.py (or vice
> versa). Does this help?
yes, the symlink is there, but nevertheless when mailman starts,
python tries to compile the file to /usr/lib/mailman/Mailman 
because this is where the entire package is

> If the problem is strictly with mm_cfg.pyc, you may be able to make
> /usr/lib/mailman/Mailman/mm_cfg.pyc an empty file with mode 0000 (or
> (0400) so python won't try to write it.
python will try to write it and fail and this triggers the SELinux AVC denial

> If John Dennis is still at RedHat, he may be able to help as I think
> he's probably thought about this more than anyone.
thanks for the contact, I will look if he's still here

The solution I created is to create a new script called
"mailman-update-cfg"'which contains the following:

import py_compile


in the mm_cfg.py there's a note, that if you use SELinux,
you have to run this script as root after you change
the configuration

what do you think about this? it's more of a work-around,
but it can be a part of the mailman init script in /etc/init.d

   Daniel Novotny

> -- 
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list