[Whonix-devel] python-stem might mess up permissions in /var/lib/tor folder?

John M. jmidy10632 at gmail.com
Sat Jun 11 01:48:21 CEST 2016


Can the requisite dependecies have debug turned on and the output captured?
Is this on bare metal, a VM, a cloud host, or is this error appearing
regardless?

--John

On Friday, June 10, 2016, Patrick Schleizer <adrelanos at riseup.net> wrote:

> Hello Damian,
>
> I would very much appreciate your help. I may have a misunderstanding of
> how python-stem works or perhaps found a bug. It is race condition
> happening in Qubes-Whonix related to backups. I might be able to
> reproduce it in plain Debian, but perhaps you already know what is going
> on here.
>
> Steps to reproduce:
>
> sudo su
>
> service tor at default stop
>
> rm /var/lib/tor/*
>
> run a small python-stem based script [1] as user "user":
>
> /usr/lib/anon-shared-helper-scripts/tor_bootstrap_check.py 127.0.0.1 9050 1
>
> Unexpected behavior:
>
> sudo ls -la /var/lib/tor
>
> total 10988
> drwx--S---  3 sdwdate kvm     4096 Jun 10 20:28 .
> drwxr-xr-x 50 root    root    4096 Jun 10 20:50 ..
> -rw-------  1 sdwdate kvm    20442 Jun  5 05:14 cached-certs
> -rw-------  1 sdwdate kvm  1405911 Jun 10 20:25 cached-microdesc-consensus
> -rw-------  1 sdwdate kvm  7440585 Jun  6 19:11 cached-microdescs
> -rw-------  1 sdwdate kvm  2359137 Jun 10 20:25 cached-microdescs.new
> -rw-------  1 sdwdate kvm        0 Jun 10 18:58 lock
> -rw-------  1 sdwdate kvm     3535 Jun 10 20:28 state
> drwxrwsr-x  2 sdwdate kvm     4096 Jun 10 18:31 .tor
>
> Why of everything it picks sdwdate:kvm as owner:group is a mystery to
> me. Folder /var/lib/tor/.tor is entirely undesired. Worse are the messed
> up folder permissions.
>
> python-stem should not result in changes in the file system? It should
> just connect to Tor using ControlPort / ControlSocket? How can these
> permission issues be avoided?
>
> By answering to this mail, your reply will be shown on the whonix-devel
> public mailing list for others to profit from it.
>
> Cheers,
> Patrick
>
> [1]
>
> https://github.com/Whonix/anon-shared-helper-scripts/blob/master/usr/lib/anon-shared-helper-scripts/tor_bootstrap_check.py
> _______________________________________________
> You are receiving this e-mail because you subscribed Whonix-devel mailing
> list. To unsubscribe visit
> https://www.whonix.org/cgi-bin/mailman/listinfo/whonix-devel or mail
> "unsubscribe" to Whonix-devel-unsubscribe at whonix.org <javascript:;>.
>
> Sie erhalten diese E-Mail, weil Sie die Whonix-devel Mailingliste aboniert
> haben. Zum abbestellen besuchen Sie
> https://www.whonix.org/cgi-bin/mailman/listinfo/whonix-devel oder mailen
> Sie "unsubscribe" an Whonix-devel-unsubscribe at whonix.org <javascript:;>.



-- 
"If you're at the end of your rope, tie a knot in it and hang on." ~~Thomas
Jefferson

"Our country right or wrong. When right, to be kept right: when wrong, to
be put right." ~~Carl Schurz

"Vitality in friendships lies in honoring differences, not just enjoying
the similarities" ~~J. Fredericks

"Commerce with all nations, alliance with none, should be our motto"
~~Thomas Jefferson

To any NSA or FBI agents reading this: please consider whether defending
the US Constitution against all enemies, foreign or domestic, requires you
to follow Snowden's example.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.whonix.org/pipermail/whonix-devel/attachments/20160610/53fc97b7/attachment.html>


More information about the Whonix-devel mailing list