My /etc/apparmor.d/system_tor:
# Last Modified: Sun Jan 1 21:47:33 2017 #include <tunables/global>
# vim:syntax=apparmor
profile system_tor flags=(attach_disconnected) { #include <abstractions/tor>
/run/systemd/journal/stdout rw, /usr/bin/tor mr, owner /var/lib/tor/ r, owner /var/lib/tor/** wk, /var/lib/tor/** r, owner /var/log/tor/* w, /{,var/}run/systemd/notify w, /{,var/}run/tor/ r, /{,var/}run/tor/control w, /{,var/}run/tor/control.authcookie w, /{,var/}run/tor/control.authcookie.tmp rw, /{,var/}run/tor/socks w, /{,var/}run/tor/tor.pid w,
}
My /etc/apparmor. d/system_ tor:
# Last Modified: Sun Jan 1 21:47:33 2017
#include <tunables/global>
# vim:syntax=apparmor
profile system_tor flags=( attach_ disconnected) {
#include <abstractions/tor>
/run/ systemd/ journal/ stdout rw, }run/systemd/ notify w, }run/tor/ control w, }run/tor/ control. authcookie w, }run/tor/ control. authcookie. tmp rw, }run/tor/ socks w, }run/tor/ tor.pid w,
/usr/bin/tor mr,
owner /var/lib/tor/ r,
owner /var/lib/tor/** wk,
/var/lib/tor/** r,
owner /var/log/tor/* w,
/{,var/
/{,var/}run/tor/ r,
/{,var/
/{,var/
/{,var/
/{,var/
/{,var/
}