php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /proc/self/root/usr/share/doc/mailman-2.1.12/contrib/ |
files >> //proc/self/root/usr/share/doc/mailman-2.1.12/contrib/check_perms_grsecurity.pyc |
Pc @ s d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k l Z d d k l Z l Z d d k Td Z d Z d Z e e i d S( sd Fixes for running Mailman under the `secure-linux' patch or grsecurity. Run check_perms -f and only then check_perms_grsecurity.py -f Note that you will have to re-run this script after a mailman upgrade and that check_perms will undo part of what this script does If you use Solar Designer's secure-linux patch, it prevents a process from linking (hard link) to a file it doesn't own. Grsecurity (http://grsecurity.net/) can have the same restriction depending on how it was built, including other restrictions like preventing you to run a program if it is located in a directory writable by a non root user. As a result Mailman has to be changed so that the whole tree is owned by Mailman, and the CGIs and some of the programs in the bin tree (the ones that lock config.pck files) are SUID Mailman. The idea is that config.pck files have to be owned by the mailman UID and only touched by programs that are UID mailman. At the same time, We have to make sure that at least 3 directories under ~mailman aren't writable by mailman: mail, cgi-bin, and bin Binary commands that are changed to be SUID mailman are also made unreadable and unrunnable by people who aren't in the mailman group. This shouldn't affect much since most of those commands would fail work if you weren't part of the mailman group anyway. Scripts in ~mailman/bin/ are not made suid or sgid, they need to be run by user mailman or root to work. Marc <marc_soft@merlins.org>/<marc_bts@vasoftware.com> 2000/10/27 - Initial version for secure_linux/openwall and mailman 2.0 2001/12/09 - Updated version for grsecurity and mailman 2.1 iN( t mm_cfg( t MAILMAN_USERt MAILMAN_GROUP( t *t mails cgi-bint bint add_memberst change_pwt check_dbt clone_membert config_listt newlistt qrunnert remove_memberst rmlistt sync_memberst updatet withlistc C s t i d } | d } t | d j p | d d j o t GHt i d n d GHt i t d } xG t D]? } t i d | } t i | d | t i | d | GHqp WHt i d } d | d GHt i t d } t i t d } t i | | | Ht i i | p6 d | GHt | d d } | i d | i n d | GHd GHt i t i d } x6 | D]. } | GHt i | | | t i | d q|Wd GHt i d } t i | | | t i | d | GHd GHt i t i d } t i t i d } x_ | | D]S } t i | } | t | j p | t | j o | GHt i | | | q$q$Wd GHxt D]} t | d } | i } | i d } y | i d d | d GHWqt j o2| i | i d d d x t t | d d d D] } t i d! i! | | } t i d"