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

Re: [tor-bugs] #14322 [Torsocks]: torsocks fails to wrap setcap binaries



#14322: torsocks fails to wrap setcap binaries
---------------------------+-----------------------------------------------
     Reporter:             |      Owner:  dgoulet
  cypherpunks              |     Status:  new
         Type:  defect     |  Milestone:
     Priority:  normal     |    Version:
    Component:  Torsocks   |   Keywords:  setcap setuid LD_PRELOAD torsocks
   Resolution:             |  Parent ID:
Actual Points:             |
       Points:             |
---------------------------+-----------------------------------------------

Comment (by yawning):

 Hmmm.  The getcap executable isn't present by default on all Linux
 systems, so the path of least resistance here might just be to bundle our
 own helper that the wrapper builds/calls on Linux.  Not sure how to handle
 the torified shell use case, since it just sets `LD_PRELOAD` and spawns
 sh.

 It's relatively easy to check if a given executable has any capabilites
 set only with libc,
 see: https://gist.github.com/Yawning/fda95db37092669958b1

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14322#comment:1>
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