refactor(profiles): use @{bin} and @{lib} in profiles (6)

This commit is contained in:
Alexandre Pujol 2023-07-09 14:46:56 +01:00
parent fcedbbfd95
commit 7c2c806ffa
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
156 changed files with 828 additions and 791 deletions

View file

@ -7,7 +7,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/pkexec
@{exec_path} = @{bin}/pkexec
profile pkexec @{exec_path} {
include <abstractions/base>
include <abstractions/authentication>
@ -53,14 +53,13 @@ profile pkexec @{exec_path} {
@{exec_path} mr,
# Apps to be run via pkexec
/{usr/,}{s,}bin/* rPUx,
/{usr/,}lib/gvfs/gvfsd-admin rPUx, #(#FIXME#)
@{libexec}/polkit-agent-helper-[0-9] rPx,
/{usr/,}lib/polkit-agent-helper-[0-9] rPx,
/{usr/,}lib/polkit-[0-9]/polkit-agent-helper-[0-9] rPx,
/{usr/,}lib/update-notifier/package-system-locked rPx,
@{bin}/* rPUx,
@{lib}/cc-remote-login-helper rPx,
@{lib}/gvfs/gvfsd-admin rPUx, #(#FIXME#)
@{lib}/polkit-[0-9]/polkit-agent-helper-[0-9] rPx,
@{lib}/polkit-agent-helper-[0-9] rPx,
@{lib}/update-notifier/package-system-locked rPx,
/usr/share/apport/apport-gtk rPx,
@{libexec}/cc-remote-login-helper rPx,
/etc/shells r,
@{etc_ro}/environment r,