Bug#700179: [PATCH] Switch user before opening sockets if capable

2013-02-13 Thread Matt Kraai
On Wed, Feb 13, 2013 at 05:28:23PM +0100, Peter Palfrader wrote: > On Tue, 12 Feb 2013, Matt Kraai wrote: > > > The "User" config setting is not sufficient for > > contrib/linux-tor-prio.sh's UID-based traffic prioritization since it > > sets the UID after the sockets are created. The UID is set

Bug#700179: [PATCH] Switch user before opening sockets if capable

2013-02-13 Thread Peter Palfrader
On Tue, 12 Feb 2013, Matt Kraai wrote: > The "User" config setting is not sufficient for > contrib/linux-tor-prio.sh's UID-based traffic prioritization since it > sets the UID after the sockets are created. The UID is set after > sockets are created so that they can be bound to ports less than 10

Bug#700179: [PATCH] Switch user before opening sockets if capable

2013-02-12 Thread Matt Kraai
The "User" config setting is not sufficient for contrib/linux-tor-prio.sh's UID-based traffic prioritization since it sets the UID after the sockets are created. The UID is set after sockets are created so that they can be bound to ports less than 1024. Processes with Linux's CAP_NET_BIND_SERVICE