parent
d80b758968
commit
393f7001dc
2 changed files with 1 additions and 1 deletions
|
|
@ -1,76 +0,0 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2020-2021 Mikhail Morfikov
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/spotify /usr/share/spotify/spotify
|
||||
profile spotify @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/opencl-intel>
|
||||
include <abstractions/audio>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/fontconfig-cache-read>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/mesa>
|
||||
include <abstractions/user-download-strict>
|
||||
include <abstractions/thumbnails-cache-read>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/chromium-common>
|
||||
|
||||
@{exec_path} mrix,
|
||||
|
||||
/usr/share/spotify/{,**} r,
|
||||
/usr/share/spotify/libcef.so mr,
|
||||
/usr/share/spotify/swiftshader/libGLESv2.so mr,
|
||||
/usr/share/spotify/swiftshader/libEGL.so mr,
|
||||
|
||||
owner @{user_config_dirs}/spotify/ rw,
|
||||
owner @{user_config_dirs}/spotify/** rw,
|
||||
|
||||
owner @{user_cache_dirs}/ rw,
|
||||
owner @{user_cache_dirs}/spotify/ rw,
|
||||
owner @{user_cache_dirs}/spotify/** rwk,
|
||||
|
||||
owner @{HOME}/.Xauthority r,
|
||||
|
||||
# The /proc/ dir is needed to avoid the following errors:
|
||||
# [:FATAL:proc_util.cc(36)] : Permission denied (13)
|
||||
# [:FATAL:sandbox_linux.cc(484)] : Permission denied (13)
|
||||
@{PROC}/ r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
deny owner @{PROC}/@{pids}/task/ r,
|
||||
deny owner @{PROC}/@{pids}/task/@{tid}/stat r,
|
||||
owner @{PROC}/@{pids}/task/@{tid}/status r,
|
||||
deny @{PROC}/@{pids}/stat r,
|
||||
deny owner @{PROC}/@{pid}/cmdline r,
|
||||
deny owner @{PROC}/@{pids}/oom_score_adj w,
|
||||
deny @{PROC}/vmstat r,
|
||||
@{PROC}sys/kernel/yama/ptrace_scope r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
/etc/fstab r,
|
||||
|
||||
deny @{sys}/devices/virtual/tty/tty[0-9]*/active r,
|
||||
# To remove the following error:
|
||||
# pcilib: Cannot open /sys/bus/pci/devices/0000:03:00.0/irq: Permission denied
|
||||
deny @{sys}/devices/pci[0-9]*/**/irq r,
|
||||
|
||||
deny /var/lib/dbus/machine-id r,
|
||||
deny /etc/machine-id r,
|
||||
|
||||
/usr/share/X11/XErrorDB r,
|
||||
|
||||
owner /tmp/@{hex}-@{hex}-@{hex}-@{hex} rw,
|
||||
|
||||
# What's this for?
|
||||
#owner /tmp/@{int}.@{int}.@{int}.[0-9]*-linux-*.zip rw,
|
||||
|
||||
include if exists <local/spotify>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue