mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 23:05:11 +01:00
557d905543
* 'tunables' of https://github.com/nobody43/apparmor.d: dbus temp tails Update apparmor.d Update gdm-runtime-config more unrelated changes adjust date-time random tails rename to int, convert more profiles fixes tunables
119 lines
2.6 KiB
Text
119 lines
2.6 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/kanyremote
|
|
profile kanyremote @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/X>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/gtk>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/user-download-strict>
|
|
include <abstractions/python>
|
|
include <abstractions/dri-enumerate>
|
|
include <abstractions/mesa>
|
|
include <abstractions/qt5-compose-cache-write>
|
|
include <abstractions/qt5-settings-write>
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
|
|
@{exec_path} r,
|
|
@{bin}/{,ba,da}sh rix,
|
|
|
|
@{bin}/ r,
|
|
@{bin}/rm rix,
|
|
@{bin}/{,e}grep rix,
|
|
@{bin}/cut rix,
|
|
@{bin}/id rix,
|
|
@{bin}/which{,.debianutils} rix,
|
|
@{bin}/tr rix,
|
|
@{bin}/{m,g,}awk rix,
|
|
@{bin}/head rix,
|
|
@{bin}/find rix,
|
|
|
|
@{bin}/anyremote rPx,
|
|
@{bin}/ps rPx,
|
|
|
|
@{bin}/killall rCx -> killall,
|
|
@{bin}/pgrep rCx -> pgrep,
|
|
|
|
@{bin}/pacmd rPUx,
|
|
@{bin}/pactl rPUx,
|
|
|
|
# Players
|
|
@{bin}/smplayer rPUx,
|
|
@{bin}/amarok rPUx,
|
|
@{bin}/vlc rPUx,
|
|
@{bin}/mpv rPUx,
|
|
@{bin}/strawberry rPUx,
|
|
|
|
owner @{HOME}/ r,
|
|
owner @{HOME}/.anyRemote/{,*} rw,
|
|
|
|
owner @{user_config_dirs}/qt5ct/{,**} r,
|
|
/usr/share/qt5ct/** r,
|
|
|
|
/usr/share/anyremote/{,**} r,
|
|
|
|
deny owner @{PROC}/@{pid}/cmdline r,
|
|
deny @{PROC}/sys/kernel/random/boot_id r,
|
|
|
|
/dev/shm/#@{int} rw,
|
|
|
|
/usr/share/hwdata/pnp.ids r,
|
|
|
|
/var/lib/dbus/machine-id r,
|
|
/etc/machine-id r,
|
|
|
|
# Doc dirs
|
|
deny /usr/local/share/ r,
|
|
deny /usr/share/ r,
|
|
deny /usr/share/doc/ r,
|
|
/usr/share/doc/anyremote{,-data}/ r,
|
|
|
|
|
|
profile killall {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
|
|
capability sys_ptrace,
|
|
|
|
signal (send) set=(int, term, kill),
|
|
|
|
ptrace (read),
|
|
|
|
@{bin}/killall mr,
|
|
|
|
# The /proc/ dir is needed to avoid the following error:
|
|
# /proc: Permission denied
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pids}/stat r,
|
|
|
|
}
|
|
|
|
profile pgrep {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
|
|
@{bin}/pgrep mr,
|
|
|
|
# The /proc/ dir and the cmdline file have to be radable to avoid pgrep segfault.
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pids}/cmdline r,
|
|
deny @{PROC}/sys/kernel/osrelease r,
|
|
|
|
/usr/share/anyremote/{,**} r,
|
|
|
|
}
|
|
|
|
include if exists <local/kanyremote>
|
|
}
|