Bug 457388 - Please don't call "/usr/bin/python" from /etc/cron.d/mailman
Summary: Please don't call "/usr/bin/python" from /etc/cron.d/mailman
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mailman
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Smetana
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 129920
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-31 11:10 UTC by Jan Kratochvil
Modified: 2008-07-31 12:33 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-07-31 12:33:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2008-07-31 11:10:44 UTC
+++ This bug was initially created as a clone of Bug #129920 +++

Description of problem:
In SE Linux the program that is executed determines the domain that the program
is run in.

Running "/usr/bin/python -S /usr/lib/mailman/cron/cull_bad_shunt" from
/etc/cron.d/mailman causes the cron job to run in domain sysadm_crond_t, while
running it as "/usr/lib/mailman/cron/cull_bad_shunt" (with the first line of the
script being "#!/usr/bin/python -S") causes it to run in domain mailman_queue_t
(really this one? Jan K.) which is the desired result (*).

This change will not have any affect for people who don't use SE Linux and will
do a lot of good for SE Linux users.

Version-Release number of selected component (if applicable):
mailman-2.1.11-2.fc10.x86_64
(this line was not present in mailman-2.1.9-10.fc9.x86_64)

How reproducible:
Always

Steps to Reproduce:
examine /etc/cron.d/mailman

Additional info:
I do not run SELinux so I know nothing if it is a problem.
Just IMO it is as I saw the old bug and the current file content.
Sorry if it works in SELinux.

Comment 1 Tomas Smetana 2008-07-31 11:45:33 UTC
You're right.  This doesn't seem to be OK.  I didn't see any AVC messages caused
by this yet but the shunt and bad queues are usually empty on my system...

Thanks.

Comment 2 Tomas Smetana 2008-07-31 12:33:49 UTC
Mailman-2.1.11-3 should solve the problem.  Please reopen the bug if not.


Note You need to log in before you can comment on or make changes to this bug.