mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profile): add dleyna profiles.
This commit is contained in:
parent
c8fd896a0b
commit
cdfa76924b
3 changed files with 51 additions and 0 deletions
26
apparmor.d/profiles-a-f/dleyna-renderer-service
Normal file
26
apparmor.d/profiles-a-f/dleyna-renderer-service
Normal 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>
|
||||
}
|
24
apparmor.d/profiles-a-f/dleyna-server-service
Normal file
24
apparmor.d/profiles-a-f/dleyna-server-service
Normal 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>
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue