paths.py should add dist-packages (import error in Mailman CGIs)
Bug #1621172 reported by
Mark Sapiro
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Mark Sapiro |
Bug Description
Mailman's paths.py adds the path to the invoking Python's /usr/lib/
Related branches
Changed in mailman: | |
status: | New → Fix Committed |
Changed in mailman: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Additional info on the impact of this bug.
Normally, the qrunner processes are not affected by this as the Python that runs mailmanctl is not invoked with a -S option.
The compiled wrappers that invoke the Mailman CGIs and the mail queueing scripts do invoke Python with a -S option for additional security. This is also not normally a problem because the CGIs and mail queueing scripts don't import anything outside of Mailman and the Python standard library, however if there are site or list modifications to use, for example, a modified MemberAdaptor that wants to import something such as 'ldap' which is outside of Mailman and the standard library, the path to that module must be in sys.path.
The fix committed here will help in those cases, but won't help if the required module is, for example, in /usr/local/ lib/pythonx. y/*.