2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}bin/mumble
|
|
|
|
profile mumble @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/X>
|
|
|
|
include <abstractions/gtk>
|
|
|
|
include <abstractions/freedesktop.org>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
|
|
|
include <abstractions/audio>
|
|
|
|
include <abstractions/user-download-strict>
|
|
|
|
include <abstractions/nameservice-strict>
|
|
|
|
include <abstractions/dri-enumerate>
|
|
|
|
include <abstractions/mesa>
|
|
|
|
include <abstractions/qt5-settings-write>
|
|
|
|
include <abstractions/qt5-compose-cache-write>
|
|
|
|
include <abstractions/user-download-strict>
|
|
|
|
include <abstractions/openssl>
|
|
|
|
include <abstractions/ssl_certs>
|
|
|
|
include <abstractions/deny-root-dir-access>
|
|
|
|
|
|
|
|
network inet dgram,
|
|
|
|
network inet6 dgram,
|
|
|
|
network inet stream,
|
|
|
|
network inet6 stream,
|
|
|
|
network netlink dgram,
|
|
|
|
network netlink raw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} mrix,
|
|
|
|
|
|
|
|
/{usr/,}bin/lsb_release rPx -> child-lsb_release,
|
|
|
|
/{usr/,}bin/xdg-open rCx -> open,
|
|
|
|
|
|
|
|
# Mumble home files
|
|
|
|
owner @{HOME}/ r,
|
|
|
|
owner @{HOME}/.config/Mumble/ rw,
|
|
|
|
owner @{HOME}/.config/Mumble/** rwkl -> @{HOME}/.config/Mumble/#[0-9]*[0-9],
|
|
|
|
owner @{HOME}/.local/share/Mumble/ rw,
|
|
|
|
owner @{HOME}/.local/share/Mumble/** rwk,
|
|
|
|
owner @{HOME}/.MumbleOverlayPipe rw,
|
|
|
|
owner @{HOME}/.MumbleSocket rw,
|
|
|
|
|
|
|
|
owner @{HOME}/.jackdrc r,
|
|
|
|
|
|
|
|
/etc/machine-id r,
|
|
|
|
/var/lib/dbus/machine-id r,
|
|
|
|
|
|
|
|
/dev/shm/MumbleLink.[0-9]*[0-9] rw,
|
|
|
|
/dev/shm/#[0-9]*[0-9] rw,
|
|
|
|
|
2020-10-25 10:23:34 +01:00
|
|
|
owner @{run}/user/[0-9]*/MumbleSocket rw,
|
|
|
|
owner @{run}/user/[0-9]*/MumbleOverlayPipe rw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
deny owner @{PROC}/@{pid}/cmdline r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
deny @{PROC}/sys/kernel/random/boot_id r,
|
|
|
|
|
|
|
|
/etc/fstab r,
|
|
|
|
|
|
|
|
owner @{HOME}/.config/qt5ct/{,**} r,
|
|
|
|
/usr/share/qt5ct/** r,
|
|
|
|
|
|
|
|
/usr/share/hwdata/pnp.ids r,
|
|
|
|
|
|
|
|
# Allowed apps to open
|
|
|
|
/{usr/,}lib/firefox/firefox rPUx,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
|
|
|
|
|
|
|
|
profile open {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/xdg-open>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/{usr/,}bin/xdg-open mr,
|
|
|
|
|
2021-02-13 15:00:16 +01:00
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
|
|
/{usr/,}bin/gawk rix,
|
|
|
|
/{usr/,}bin/readlink rix,
|
|
|
|
/{usr/,}bin/basename rix,
|
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
owner @{HOME}/ r,
|
|
|
|
|
|
|
|
owner @{run}/user/[0-9]*/ r,
|
|
|
|
|
2020-09-12 17:19:23 +02:00
|
|
|
# Allowed apps to open
|
|
|
|
/{usr/,}lib/firefox/firefox rPUx,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
owner @{HOME}/.xsession-errors w,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/mumble>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|