Add new profiles
This commit is contained in:
parent
7a24f98f48
commit
80de79b66a
10 changed files with 324 additions and 0 deletions
53
apparmor.d/profiles-m-r/murmurd
Normal file
53
apparmor.d/profiles-m-r/murmurd
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{,usr/}{,s}bin/murmurd
|
||||
profile murmurd @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/dbus-strict>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
capability chown,
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
capability dac_override,
|
||||
capability sys_resource,
|
||||
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{,usr/}bin/lsb_release Px -> lsb_release,
|
||||
|
||||
dbus send bus=system path=/
|
||||
interface=org.freedesktop.DBus.Peer
|
||||
member=Ping
|
||||
peer=(name=org.freedesktop.Avahi, label=avahi-daemon),
|
||||
|
||||
/etc/mumble-server.ini r,
|
||||
|
||||
owner /var/lib/mumble-server/{,**} rw,
|
||||
owner /var/lib/mumble-server/*.sqlite rwk,
|
||||
|
||||
/var/log/mumble-server/*.log rw,
|
||||
|
||||
owner @{run}/mumble-server/*.pid rw,
|
||||
|
||||
# Silencer
|
||||
deny / r,
|
||||
deny /usr/{,local/}lib/ r,
|
||||
deny /usr/lib32/ r,
|
||||
deny /usr/lib64/ r,
|
||||
|
||||
# file_inherit
|
||||
unix (send, receive) type=stream addr=none peer=(label=lsb_release),
|
||||
|
||||
include if exists <local/murmurd>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue