Bug 1043677

Summary: mailman cgi scripts lack setgid bit
Product: [Fedora] Fedora Reporter: Tom Hughes <tom>
Component: mailmanAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: jkaluza, kjh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mailman-2.1.15-17.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-17 05:53:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tom Hughes 2013-12-16 21:45:00 UTC
Description of problem:

The mailman CGI scripts in the F20 package are missing the setgid bit.

Version-Release number of selected component (if applicable):

mailman-2.1.15-15.fc20.x86_64

How reproducible:

Every time.

Steps to Reproduce:
1. Visit mailman web page
2. Get error

Actual results:

Error displayed

Expected results:

Normal page displayed

Comment 1 Fedora Update System 2013-12-18 12:39:40 UTC
mailman-2.1.15-16.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/mailman-2.1.15-16.fc20

Comment 2 Fedora Update System 2013-12-20 02:05:20 UTC
Package mailman-2.1.15-16.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mailman-2.1.15-16.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23675/mailman-2.1.15-16.fc20
then log in and leave karma (feedback).

Comment 3 K H 2013-12-22 02:31:47 UTC
I'm experience a setgid problem with mailmain on postfix on F20 as well:

This is the error I am getting:


<list>: Command died with status 1:
    "/usr/lib/mailman/mail/mailman post list". Command output: Traceback
    (most recent call last):   File "/usr/lib/mailman/scripts/post", line 69,
    in <module>     main()   File "/usr/lib/mailman/scripts/post", line 64, in
    main     tolist=1, _plaintext=1)   File
    "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 136, in enqueue
    fp = open(tmpfile, 'w') IOError: [Errno 13] Permission denied:
    '/var/spool/mailman/in/1387678947.365814+dcef1b435c6c5ec58a0cc6c2655164ec16542b7f.pck.tmp'

I installed mailman-2.1.15-16.fc20 from updates-testing but continued getting the same error.

We need setgid on /usr/lib/mailman/mail/mailman as well.  I was able to get things working by running chmod g+s /usr/lib/mailman/mail/mailman as root.

Comment 4 Fedora Update System 2014-01-03 11:22:35 UTC
mailman-2.1.15-17.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/mailman-2.1.15-17.fc20

Comment 5 Jan Kaluža 2014-01-03 11:25:12 UTC
(In reply to K H from comment #3)
> We need setgid on /usr/lib/mailman/mail/mailman as well.  I was able to get
> things working by running chmod g+s /usr/lib/mailman/mail/mailman as root.

Thanks for testing, I have fixed it in latest update for F20.

Comment 6 Fedora Update System 2014-01-17 05:53:18 UTC
mailman-2.1.15-17.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.