Bug 484328
| Summary: | Policy prevents mailman from reading Mailman python files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Derek Atkins <warlord> |
| Component: | mailman | Assignee: | Daniel Novotny <dnovotny> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 10 | CC: | dnovotny |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-02-12 14:44:51 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Derek Atkins
2009-02-06 03:41:11 UTC
Actually, I think the problem is that I modified /usr/lib/mailman/Mailman/mm_cfg.py as per the mailman instructions to contain my local configuration and this failure is that mailman cannot WRITE to the directory to write out the new compiled pyc file. The problem here is python is trying to write optimized code. You can just execute python /usr/lib/mailman/Mailman/mm_cfg.py And that should write the code and then mailman will no longer try to write the code. The real problem here is the cfg file being python. Unfortunately running: python /usr/lib/mailman/Mailman/mm_cfg.py did not write out a python /usr/lib/mailman/Mailman/mm_cfg.pyc or python /usr/lib/mailman/Mailman/mm_cfg.pyo Yes, it would be nicer if the cfg file wasn't python, but that's a different issue. Aha, but this worked:
python -c 'import py_compile; py_compile.compile("/usr/lib/mailman/Mailman/mm_cfg.py")'
OK, I created a script "mailman-update-cfg" with the contents of Comment #5 and left a note in "mm_cfg.py", that if you use SELinux, you have to run this script as root after you change the file |