feat(profile): add dleyna profiles.

This commit is contained in:
Alexandre Pujol 2023-11-27 19:27:44 +00:00
parent c8fd896a0b
commit cdfa76924b
Failed to generate hash of commit
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/dleyna-renderer-service
profile dleyna-renderer-service @{exec_path} {
include <abstractions/base>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink dgram,
@{exec_path} mr,
/etc/dleyna-renderer-service.conf r,
owner @{user_config_dirs}/dleyna-renderer-service.conf rw,
include if exists <local/dleyna-renderer-service>
}

View file

@ -0,0 +1,24 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/dleyna-server-service
profile dleyna-server-service @{exec_path} {
include <abstractions/base>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} mr,
@{user_config_dirs}/dleyna-server-service.conf r,
include if exists <local/dleyna-server-service>
}

View file

@ -83,6 +83,7 @@ dbus-daemon attach_disconnected,complain
DiscoverNotifier complain
dkms attach_disconnected,complain
dleyna-renderer-service complain
dleyna-server-service complain
dmesg.service complain
docker-proxy complain
dockerd attach_disconnected,complain