[tor-dev] tor not starting with NoNewPrivileges = yes (systemd)

Nusenu nusenu at openmailbox.org
Tue Mar 17 17:57:31 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Zack Weinberg:
> On Tue, Mar 17, 2015 at 12:55 PM, Nusenu <nusenu at openmailbox.org>
> wrote:
>> I had:
>>>> Log debug file /var/log/tor/log
>> but it is not being written to.
> 
> This is *probably* because one of the missing privileges is the 
> ability to write to files in /var/log/tor.  Try `Log debug stderr` 
> instead -- you'll have to fish the logs out of systemd's journal,
> but I *think* it should keep a complete transcript.
> 
>> It is a bit tricky environment to run strace, how would you go
>> about it?
> 
> ExecStart = /usr/bin/strace -f /usr/bin/tor -f /etc/tor/torrc
> --runasdaemon 0
> 
> seems like it ought to work (again, the trace will get written to
> the journal)

after running systemd in debug mode and having a look at the systemd
debug log I had a wild guess that this is actually a systemd issue.

Running the same thing on a jessie/systemd 215 - works.

Sorry for the noise, and thanks for your help nonetheless!
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJVCGsKAAoJEFv7XvVCELh0CHMP/2dB792xRPnI5Nw4zOi9VuUM
WuFAz0AWw2acdsEUZ4s7YjY9nmzxTukgN4LbsX8rTeyZ59AxjVtNdOtcGjF9SI1u
Vq9MtCRYCk2grjlsh7M0IY7vN7jdJnngsfZWQYdPWsWVFRZI/u98aGN6N0PP37Vd
YQ+bfAgsgtngpqfWBLp1+YZ3AeGjlV6qsiA+olAHvNbUBweR8yHeRyPm/fPKbL2w
Iz3j89hohywWNOIblk0e5N8uvNdHULiQCOvCGpafIbHY3sQv3YKdCOgQyNk8BDT0
97VaOMjNX4hySk9vtLqa3Y09F4ruG+PkifrJe558gVlee+EplduIveWD9gThaeaE
3khXw3fUXTG5DiJl6MgUIz6kaRwo7CH7mzd7x58h3q2IoFf5ux4eR6jVgyV1UA62
Z8Ziu9ChNia2oaeRABWKy9Oko7rd+1qr9TsO6wYT7VLz/v8CtIF5qC9P1iJwbbkH
mT6O2Gdvz8hafZt7XtqkA9TaDggkjR321stpwO6NjHCHWAv0bRXoqKbZXoNKvomF
nixrrox3jk0Fkwm5JtWq87v9DNPT4aF2ivGzeLCHAoVIIuUeiCRTn1o62IAC5DSz
DIWvZ0X+odTcKtU9GaTdmQLvyLVwhbN6LUJkFHdsgHT6npsXaGNUBiLfLpK+pSaS
cJmMN4ahtHmNjhdMBts3
=xXvu
-----END PGP SIGNATURE-----


More information about the tor-dev mailing list