refactor(profiles): use @{bin} and @{lib} in profiles (4)
This commit is contained in:
parent
27daa7c9bb
commit
43b0f09b65
173 changed files with 909 additions and 916 deletions
|
|
@ -6,7 +6,7 @@ abi <abi/3.0>,
|
|||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}bin/anki
|
||||
@{exec_path} = @{bin}/anki
|
||||
profile anki @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/opencl-intel>
|
||||
|
|
@ -35,18 +35,18 @@ profile anki @{exec_path} {
|
|||
network netlink raw,
|
||||
|
||||
@{exec_path} r,
|
||||
/{usr/,}bin/python3.[0-9]* r,
|
||||
@{bin}/python3.[0-9]* r,
|
||||
|
||||
/{usr/,}{s,}bin/ldconfig rix,
|
||||
@{bin}/ldconfig rix,
|
||||
|
||||
/{usr/,}bin/ r,
|
||||
/{usr/,}bin/lsb_release rPx -> lsb_release,
|
||||
/{usr/,}bin/xdg-open rCx -> open,
|
||||
/{usr/,}bin/mpv rCx -> mpv,
|
||||
@{bin}/ r,
|
||||
@{bin}/lsb_release rPx -> lsb_release,
|
||||
@{bin}/xdg-open rCx -> open,
|
||||
@{bin}/mpv rCx -> mpv,
|
||||
# For recording sounds while creating decks
|
||||
/{usr/,}bin/lame rCx -> lame,
|
||||
@{bin}/lame rCx -> lame,
|
||||
|
||||
/{usr/,}lib/@{multiarch}/qt5/libexec/QtWebEngineProcess rix,
|
||||
@{lib}/@{multiarch}/qt5/libexec/QtWebEngineProcess rix,
|
||||
/usr/share/qt5/**/*.pak r,
|
||||
owner @{user_config_dirs}/qt5ct/{,**} r,
|
||||
/usr/share/qt5ct/** r,
|
||||
|
|
@ -128,8 +128,8 @@ profile anki @{exec_path} {
|
|||
/etc/mime.types r,
|
||||
|
||||
# SyncThread
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/uname rix,
|
||||
@{bin}/{,ba,da}sh rix,
|
||||
@{bin}/uname rix,
|
||||
/etc/ r,
|
||||
/etc/debian_version r,
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ profile anki @{exec_path} {
|
|||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
# Allowed apps to open
|
||||
/{usr/,}lib/firefox/firefox rPUx,
|
||||
@{lib}/firefox/firefox rPUx,
|
||||
|
||||
|
||||
profile mpv {
|
||||
|
|
@ -152,7 +152,7 @@ profile anki @{exec_path} {
|
|||
|
||||
signal (receive) set=(term, kill) peer=anki,
|
||||
|
||||
/{usr/,}bin/mpv mr,
|
||||
@{bin}/mpv mr,
|
||||
|
||||
/etc/mpv/encoding-profiles.conf r,
|
||||
|
||||
|
|
@ -181,7 +181,7 @@ profile anki @{exec_path} {
|
|||
profile lame {
|
||||
include <abstractions/base>
|
||||
|
||||
/{usr/,}bin/lame mr,
|
||||
@{bin}/lame mr,
|
||||
|
||||
owner @{user_share_dirs}/Anki{,2}/*/collection.media/rec.{mp3,wav} rw,
|
||||
|
||||
|
|
@ -191,19 +191,19 @@ profile anki @{exec_path} {
|
|||
include <abstractions/base>
|
||||
include <abstractions/xdg-open>
|
||||
|
||||
/{usr/,}bin/xdg-open mr,
|
||||
@{bin}/xdg-open mr,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/{m,g,}awk rix,
|
||||
/{usr/,}bin/readlink rix,
|
||||
/{usr/,}bin/basename rix,
|
||||
@{bin}/{,ba,da}sh rix,
|
||||
@{bin}/{m,g,}awk rix,
|
||||
@{bin}/readlink rix,
|
||||
@{bin}/basename rix,
|
||||
|
||||
owner @{HOME}/ r,
|
||||
|
||||
owner @{run}/user/@{uid}/ r,
|
||||
|
||||
# Allowed apps to open
|
||||
/{usr/,}lib/firefox/firefox rPUx,
|
||||
@{lib}/firefox/firefox rPUx,
|
||||
|
||||
# file_inherit
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue