60 lines
No EOL
1.7 KiB
Text
60 lines
No EOL
1.7 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/gnome-music
|
|
profile gnome-music @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/audio>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/gnome-strict>
|
|
include <abstractions/graphics>
|
|
include <abstractions/gstreamer>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
include <abstractions/p11-kit>
|
|
include <abstractions/python>
|
|
include <abstractions/ssl_certs>
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
@{bin}/ r,
|
|
@{bin}/python3.[0-9]* rix,
|
|
@{lib}/python3.[0-9]*/site-packages//gnomemusic/__pycache__/{,**} rw,
|
|
|
|
/usr/share/grilo-plugins/grl-lua-factory/{,*} r,
|
|
/usr/share/org.gnome.Music/{,**} r,
|
|
/usr/share/tracker3/{,**} r,
|
|
|
|
/etc/machine-id r,
|
|
|
|
owner @{user_music_dirs}/{,**} r,
|
|
|
|
owner @{user_cache_dirs}/gnome-music/{,**} rwk,
|
|
owner @{user_cache_dirs}/media-art/{,*} rw,
|
|
owner @{user_share_dirs}/grilo-plugins/ rwk,
|
|
owner @{user_share_dirs}/grilo-plugins/*.db{,-shm,-journal,-wal} rwk,
|
|
|
|
owner @{run}/user/@{uid}/orcexec.[0-9a-zA-Z]* rw,
|
|
@{run}/systemd/inhibit/[0-9]*.ref rw,
|
|
|
|
owner /tmp/grilo-plugin-cache-[0-9A-Z]*/ rw,
|
|
owner /var/tmp/etilqs_@{hex} rw,
|
|
|
|
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
|
|
owner @{PROC}/@{pid}/cmdline r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
|
|
|
include if exists <local/gnome-music>
|
|
} |