feat(profile): modernize some profiles.
This commit is contained in:
parent
81b9de3aff
commit
9c859cec9d
14 changed files with 124 additions and 211 deletions
|
|
@ -10,21 +10,17 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/mumble
|
||||
profile mumble @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/X>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/audio-client>
|
||||
include <abstractions/desktop>
|
||||
include <abstractions/fontconfig-cache-read>
|
||||
include <abstractions/audio>
|
||||
include <abstractions/user-download-strict>
|
||||
include <abstractions/graphics>
|
||||
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/qt5-compose-cache-write>
|
||||
include <abstractions/qt5-settings-write>
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/user-download-strict>
|
||||
include <abstractions/user-download-strict>
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
|
|
@ -35,25 +31,22 @@ profile mumble @{exec_path} {
|
|||
|
||||
@{exec_path} mrix,
|
||||
|
||||
@{bin}/lsb_release rPx -> lsb_release,
|
||||
@{bin}/xdg-open rCx -> open,
|
||||
@{bin}/lsb_release rPx -> lsb_release,
|
||||
@{browsers_path} rPx,
|
||||
@{open_path} rPx -> child-open,
|
||||
|
||||
/etc/fstab r,
|
||||
/etc/machine-id r,
|
||||
/var/lib/dbus/machine-id r,
|
||||
|
||||
# Mumble home files
|
||||
owner @{HOME}/ r,
|
||||
owner @{HOME}/.jackdrc r,
|
||||
owner @{HOME}/.MumbleOverlayPipe rw,
|
||||
owner @{HOME}/.MumbleSocket rw,
|
||||
owner @{user_config_dirs}/Mumble/ rw,
|
||||
owner @{user_config_dirs}/Mumble/** rwkl -> @{user_config_dirs}/Mumble/#@{int},
|
||||
owner @{user_share_dirs}/Mumble/ rw,
|
||||
owner @{user_share_dirs}/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.@{int} rw,
|
||||
/dev/shm/#@{int} rw,
|
||||
|
||||
owner @{run}/user/@{uid}/MumbleSocket rw,
|
||||
owner @{run}/user/@{uid}/MumbleOverlayPipe rw,
|
||||
|
|
@ -64,42 +57,11 @@ profile mumble @{exec_path} {
|
|||
owner @{PROC}/@{pid}/mounts r,
|
||||
deny @{PROC}/sys/kernel/random/boot_id r,
|
||||
|
||||
/etc/fstab r,
|
||||
|
||||
owner @{user_config_dirs}/qt5ct/{,**} r,
|
||||
/usr/share/qt5ct/** r,
|
||||
|
||||
/usr/share/hwdata/pnp.ids r,
|
||||
|
||||
# Allowed apps to open
|
||||
@{lib}/firefox/firefox rPUx,
|
||||
/dev/shm/MumbleLink.@{int} rw,
|
||||
/dev/shm/#@{int} rw,
|
||||
|
||||
# file_inherit
|
||||
owner /dev/tty@{int} rw,
|
||||
|
||||
|
||||
profile open {
|
||||
include <abstractions/base>
|
||||
include <abstractions/xdg-open>
|
||||
|
||||
@{bin}/xdg-open mr,
|
||||
|
||||
@{sh_path} rix,
|
||||
@{bin}/{m,g,}awk rix,
|
||||
@{bin}/readlink rix,
|
||||
@{bin}/basename rix,
|
||||
|
||||
owner @{HOME}/ r,
|
||||
|
||||
owner @{run}/user/@{uid}/ r,
|
||||
|
||||
# Allowed apps to open
|
||||
@{lib}/firefox/firefox rPUx,
|
||||
|
||||
# file_inherit
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
}
|
||||
|
||||
include if exists <local/mumble>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue