Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #28843
Closed (moved) (moved)
Open
Issue created Dec 14, 2018 by Damian Johnson@atagar

DROPOWNERSHIP command

Hi Nick! As discussed a DROPOWNERSHIP command would be handy for the following use case...

00:04 <+atagar> Sorry, I'm probably not groking what you're suggesting. 
OwningControllerFd sounds to be for TAKEOWNERSHIP of a control socket 
(https://gitweb.torproject.org/torspec.git/tree/control-spec.txt#n3396). Do you 
mean 'don't open a control port, but open a control socket instead'?
00:05 <+nickm> It is more special than that.
00:05 <+nickm> you open a socketpair, and pass one end to tor when you start it
00:06 <+nickm> since the os enforces ownership, you don't need to do any other authentication
00:06 <+atagar> Ah. So stem opens a local socket before starting tor, provides 
this socket as a torrc argument, listens to the bootstrap messages, then 
disconnects?
00:07 <+atagar> That certainly sounds like it would do the trick.
00:08 <+atagar> In this case I don't want tor to terminate when I disconnect 
(which is the usual purpose of TAKEOWNERSHIP), but if I can avoid that this 
sounds perfect.
00:09 <+nickm> sounds like a DROPOWNERSHIP command would be sufficient for your 
needs then
00:09 <+nickm> open a ticket and I'll make one :)
00:10 <+nickm> or remind me next week
00:10 <+atagar> Wonderful! Thanks, will do.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking