wrong path usage in check_perms_grsecurity.py

Bug #411192 reported by Hanno Böck
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Undecided
Mark Sapiro

Bug Description

check_perms_grsecurity.py
uses prefix at two points where it should use var_prefix. See attached patch.

Related branches

Revision history for this message
Hanno Böck (hanno-hboeck) wrote :
Revision history for this message
Mark Sapiro (msapiro) wrote :

I hate to patch 'contrib' modules that I don't use as I don't know whether the resultant module does what it's supposed to, and it's really the responsibility of the contributor.

However, that said, the flaw you point out is obvious enough that I will do it in this case. Note however the following deficiencies in your patch:

1) The paths module has no var_prefix attribute. This needs to be mm_cfg.VAR_PREFIX.

2) You missed line 90

    file = paths.prefix + '/data/last_mailman_version'

needs to be changed also.

Changed in mailman:
assignee: nobody → Mark Sapiro (msapiro)
status: New → In Progress
Revision history for this message
Hanno Böck (hanno-hboeck) wrote :

Improved patch attached, sorry, got this in a gentoo bug report and didn't have a deeper look, it just seemed reasonable.

Mark Sapiro (msapiro)
Changed in mailman:
status: In Progress → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
milestone: none → 2.1.13rc1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.