Add tor profile

This commit is contained in:
odomingao 2024-08-15 14:50:20 -03:00 committed by GitHub
parent ad60ee11ad
commit ab53a29f68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,32 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 odomingao
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/tor
profile tor @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability setgid,
capability setuid,
network inet dgram,
network inet stream,
network netlink raw,
@{exec_path} mr,
/usr/share/tor/{,**} r,
owner /etc/tor/torrc r,
owner /var/lib/tor/{,**} rwk,
include if exists <local/tor>
}
# vim:syntax=apparmor