mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-06 10:15:08 +01:00
50 lines
1.1 KiB
Text
50 lines
1.1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/murmurd
|
|
profile murmurd @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/dbus-strict>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
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,
|
|
|
|
unix (send, receive) type=stream addr=none peer=(label=lsb_release),
|
|
|
|
dbus send bus=system path=/
|
|
interface=org.freedesktop.DBus.Peer
|
|
member=Ping
|
|
peer=(name=org.freedesktop.Avahi, label=avahi-daemon),
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/lsb_release rPx -> lsb_release,
|
|
|
|
/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,
|
|
|
|
include if exists <local/murmurd>
|
|
}
|