[Tails-dev] onion-grater fix Tor control auth cookie authent…

Nachricht löschen

Nachricht beantworten
Autor: Patrick Schleizer
Datum:  
To: whonix-devel, Patrick Schleizer, The Tails public development discussion list, anonym
Alte Treads: [Tails-dev] onion-grater sd-notify support
Betreff: [Tails-dev] onion-grater fix Tor control auth cookie authentication even if HashedControlPassword is set
Hi!

https://github.com/Whonix/onion-grater/commit/70e735dae1c15920c356b07fc6aaf4b9589b465a

Please review and merge.

The more I think about it, perhaps we could abolish DEFAULT_COOKIE_PATH
= '/run/tor/control.authcookie' altogether?

PROTOCOLINFO tells controllers (like stem) where the cookie file is
located. It doesn't rely on a default path. For an example of what this
looks like on the wire please see...

https://stem.torproject.org/faq.html#i-m-using-cookie-authentication

Then we might be able to simply this and just use authenticate().

Cheers,
Patrick