[CentOS] Centos7 & Selinux & Tor

Tue Oct 23 19:13:17 UTC 2018
Robin Lee <robinlee at mailbox.org>

On Tue, 2018-10-23 at 14:54 -0400, Daniel Walsh wrote:
> Most likely this is tor running as root and trying to access this
> file.

I'm trying to start tor using 'systemctl start tor' and I haven't
touched any systemd file.

What I get in the logs when I try to start is

polkitd[1097]: Registered Authentication Agent for unix-
process:18981:211495106 (system bus name :1.27348 [/usr/bin/pkttyagent
--notify-fd 5 --fallback], object path
/org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
systemd[1]: Starting Anonymizing overlay network for TCP...
tor[18988]: Oct 23 20:26:10.746 [notice] Tor 0.2.9.16 (git-
645ef2e2854b2225) running on Linux with Libevent 2.0.21-stable, OpenSSL
1.0.2k-fips and Zlib 1.2.7.
tor[18988]: Oct 23 20:26:10.746 [notice] Tor can't help you if you use
it wrong! Learn how to be safe at 
https://www.torproject.org/download/download#warning
tor[18988]: Oct 23 20:26:10.746 [notice] Read configuration file
"/usr/share/tor/defaults-torrc".
tor[18988]: Oct 23 20:26:10.746 [notice] Read configuration file
"/etc/tor/torrc".
tor[18988]: Oct 23 20:26:10.752 [warn] Directory
/var/lib/tor/hidden_service/ cannot be read: Permission denied
tor[18988]: Oct 23 20:26:10.752 [warn] Checking service directory
/var/lib/tor/hidden_service/ failed.
tor[18988]: Oct 23 20:26:10.752 [warn] Failed to parse/validate config:
Failed to configure rendezvous options. See logs for details.
tor[18988]: Oct 23 20:26:10.752 [err] Reading config failed--see
warnings above.
systemd[1]: tor.service: control process exited, code=exited status=1
systemd[1]: Failed to start Anonymizing overlay network for TCP.

How can I check which user it is trying to start as?

Cheers
Robin