[issue9168] setuid in smtp.py sheds privileges before binding port

2011-10-20 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed. Thank you for the patch. -- nosy: +flox resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue9168] setuid in smtp.py sheds privileges before binding port

2011-10-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset d2f303861c98 by Florent Xicluna in branch '2.7': Issue #9168: now smtpd is able to bind privileged port. http://hg.python.org/cpython/rev/d2f303861c98 -- ___ Python tracker

[issue9168] setuid in smtp.py sheds privileges before binding port

2011-10-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d92b94b0eec by Florent Xicluna in branch '3.2': Issue #9168: now smtpd is able to bind privileged port. http://hg.python.org/cpython/rev/7d92b94b0eec New changeset bbd92b42508e by Florent Xicluna in branch 'default': Issue #9168: now smtpd is able

[issue9168] setuid in smtp.py sheds privileges before binding port

2011-10-20 Thread Petri Lehtinen
Petri Lehtinen added the comment: The patch looks good to me and fixes the problem. To reproduce, try this: sudo python -m smtpd 127.0.0.1:25 It raises a "socket.error: [Errno 13] Permission denied" when trying to bind to the privileged port. Attached a refreshed the patch that applies c

[issue9168] setuid in smtp.py sheds privileges before binding port

2011-02-03 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review stage: -> patch review type: crash -> behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue9168] setuid in smtp.py sheds privileges before binding port

2010-08-14 Thread Alberto Trevino
Alberto Trevino added the comment: I haven't heard anything on this problem or my patch. What's the status? -- ___ Python tracker ___ ___

[issue9168] setuid in smtp.py sheds privileges before binding port

2010-08-05 Thread Alberto Trevino
Changes by Alberto Trevino : -- type: -> crash versions: +Python 3.1 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9168] setuid in smtp.py sheds privileges before binding port

2010-07-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue9168] setuid in smtp.py sheds privileges before binding port

2010-07-05 Thread Alberto Trevino
New submission from Alberto Trevino : The SMTP proxy server in Python (smtpd.py) allows you to shed privileges and run as user nobody. However, if you are trying to use port 25, the server will shed privileges before binding the port, causing a bind failure. By moving the setuid code between t