[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #6264 [Obfsproxy]: obfsproxy: Add support for dropping privileges and chrooting



#6264: obfsproxy: Add support for dropping privileges and chrooting
-------------------------+--------------------------------------------------
 Reporter:  dazo         |          Owner:  asn
     Type:  enhancement  |         Status:  new
 Priority:  normal       |      Milestone:     
Component:  Obfsproxy    |        Version:     
 Keywords:               |         Parent:     
   Points:               |   Actualpoints:     
-------------------------+--------------------------------------------------
 {{{
 [PATCH 1/2] Make obfsproxy drop privileges if requested

 Added --user and --group arguments which will make obfsproxy drop
 privileges
 and switch to the given user/group.

 The code for droping privileges is shamelessly taken from the Tor project
 and
 adopted to obfsproxy. The switch_id() function in src/common/compat.c was
 used.

 Signed-off-by: David Sommerseth <dazo@xxxxxxxxxxxxxxxxxxxxx>
 ---
 Âconfigure.acÂÂ |ÂÂÂ 3 +
 Âsrc/external.c |ÂÂ 16 +++++++-
 Âsrc/main.cÂÂÂÂ |Â 120
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Âsrc/managed.c | 10 +++++
 Â4 files changed, 147 insertions(+), 2 deletions(-)


 [PATCH 2/2] Added support for chrooting obfsproxy

 This patch adds --chroot=<dir> which will chroot the process as soon
 as possible.

 For more info about chrooting, see this URL:
 <http://www.unixwiz.net/techtips/chroot-practices.html>

 Signed-off-by: David Sommerseth <dazo@xxxxxxxxxxxxxxxxxxxxx>
 ---
  src/main.c |   27 +++++++++++++++++++++++++--
  1 files changed, 25 insertions(+), 2 deletions(-)
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6264>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs