Allow mount-zfs access to pts

This commit is contained in:
Jeroen Rijken 2022-07-09 15:24:10 +02:00 committed by Alex
parent da08ef6aa6
commit c9b4423e45
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@ profile mount-zfs @{exec_path} flags=(complain) {
@{exec_path} mr, @{exec_path} mr,
/dev/pts/[0-9]* rw,
@{MOUNTDIRS}/ r, @{MOUNTDIRS}/ r,
@{MOUNTS}/ r, @{MOUNTS}/ r,
@{MOUNTS}/*/ r, @{MOUNTS}/*/ r,

View File

@ -9,7 +9,7 @@ profile zpool @{exec_path} flags=(complain) {
capability sys_admin, capability sys_admin,
@{exec_path} r, @{exec_path} rm,
/{usr/,}{local/,}lib/zfs-linux/zpool.d/* rix, /{usr/,}{local/,}lib/zfs-linux/zpool.d/* rix,
/{usr/,}{local/,}bin/{ba,da,k,z,}sh rix, /{usr/,}{local/,}bin/{ba,da,k,z,}sh rix,