mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-21 09:25:35 +01:00
revert(profiles): remove tor related profiles.
This commit is contained in:
parent
f53550525e
commit
80b337bdf4
2 changed files with 0 additions and 58 deletions
|
@ -1,33 +0,0 @@
|
||||||
# vim:syntax=apparmor
|
|
||||||
|
|
||||||
include <abstractions/base>
|
|
||||||
include <abstractions/nameservice>
|
|
||||||
include <abstractions/openssl>
|
|
||||||
|
|
||||||
network tcp,
|
|
||||||
network udp,
|
|
||||||
|
|
||||||
capability chown,
|
|
||||||
capability dac_read_search,
|
|
||||||
capability fowner,
|
|
||||||
capability fsetid,
|
|
||||||
capability setgid,
|
|
||||||
capability setuid,
|
|
||||||
|
|
||||||
/usr/bin/tor r,
|
|
||||||
/usr/sbin/tor r,
|
|
||||||
|
|
||||||
# Needed by obfs4proxy
|
|
||||||
/proc/sys/net/core/somaxconn r,
|
|
||||||
|
|
||||||
/proc/sys/kernel/random/uuid r,
|
|
||||||
/sys/devices/system/cpu/ r,
|
|
||||||
/sys/devices/system/cpu/** r,
|
|
||||||
|
|
||||||
/etc/tor/* r,
|
|
||||||
/usr/share/tor/** r,
|
|
||||||
|
|
||||||
/usr/bin/obfsproxy PUx,
|
|
||||||
/usr/bin/obfs4proxy Pix,
|
|
||||||
|
|
||||||
include if exists <abstractions/tor.d>
|
|
|
@ -1,25 +0,0 @@
|
||||||
# vim:syntax=apparmor
|
|
||||||
include <tunables/global>
|
|
||||||
|
|
||||||
profile system_tor flags=(attach_disconnected) {
|
|
||||||
include <abstractions/tor>
|
|
||||||
include <abstractions/openssl>
|
|
||||||
|
|
||||||
owner /var/lib/tor/** rwk,
|
|
||||||
owner /var/lib/tor/ r,
|
|
||||||
owner /var/log/tor/* w,
|
|
||||||
|
|
||||||
# During startup, tor (as root) tries to open various things such as
|
|
||||||
# directories via check_private_dir(). Let it.
|
|
||||||
/var/lib/tor/** r,
|
|
||||||
|
|
||||||
/{,var/}run/tor/ r,
|
|
||||||
/{,var/}run/tor/control w,
|
|
||||||
/{,var/}run/tor/socks w,
|
|
||||||
/{,var/}run/tor/tor.pid w,
|
|
||||||
/{,var/}run/tor/control.authcookie w,
|
|
||||||
/{,var/}run/tor/control.authcookie.tmp rw,
|
|
||||||
/{,var/}run/systemd/notify w,
|
|
||||||
|
|
||||||
include if exists <local/system_tor>
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue