Bug 457388 - Please don't call "/usr/bin/python" from /etc/cron.d/mailman
Please don't call "/usr/bin/python" from /etc/cron.d/mailman
Product: Fedora
Classification: Fedora
Component: mailman (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Smetana
Fedora Extras Quality Assurance
Depends On: 129920
  Show dependency treegraph
Reported: 2008-07-31 07:10 EDT by Jan Kratochvil
Modified: 2008-07-31 08:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-07-31 08:33:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2008-07-31 07:10:44 EDT
+++ 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):
(this line was not present in mailman-2.1.9-10.fc9.x86_64)

How reproducible:

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 07:45:33 EDT
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...

Comment 2 Tomas Smetana 2008-07-31 08:33:49 EDT
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.