feat(profiles): replace old [0-9]* glob by @{int}

Beware some [0-9]* glob are actually not proper @{int}.
This commit is contained in:
Alexandre Pujol 2023-08-18 17:09:53 +01:00
parent 8ea4491a56
commit 275d6b6e62
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
368 changed files with 637 additions and 636 deletions

View file

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{snap/snapd/[0-9]*/,}{usr/,}bin/snap
@{exec_path} = /{snap/snapd/@{int}/,}{usr/,}bin/snap
profile snap @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@ -43,9 +43,9 @@ profile snap @{exec_path} {
@{bin}/systemctl rPx -> child-systemctl,
/snap/{,**} rw,
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snap-confine rPx,
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snap-seccomp rPx,
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snapd r,
/{snap/snapd/@{int}/,}{usr/,}lib/snapd/snap-confine rPx,
/{snap/snapd/@{int}/,}{usr/,}lib/snapd/snap-seccomp rPx,
/{snap/snapd/@{int}/,}{usr/,}lib/snapd/snapd r,
/etc/fstab r,
@ -77,7 +77,7 @@ profile snap @{exec_path} {
@{PROC}/sys/kernel/seccomp/actions_avail r,
@{PROC}/version r,
/dev/tty[0-9]* rw,
/dev/tty@{int} rw,
/dev/ttyS[0-9]* rw,
deny @{user_share_dirs}/gvfs-metadata/* r,