Add unix domain socket

Signed-off-by: Jeroen Rijken <jeroen.rijken@xs4all.nl>
This commit is contained in:
Jeroen Rijken 2023-06-05 21:18:32 +02:00 committed by Alex
parent 5ccd92e12f
commit a84f0b540c

View File

@ -12,6 +12,8 @@ profile sshfs @{exec_path} flags=(complain) {
@{exec_path} mr, @{exec_path} mr,
unix (connect, send, receive) type=stream peer=(label="sshfs//fusermount",addr=none),
/{usr/,}bin/ssh rPx, /{usr/,}bin/ssh rPx,
/{usr/,}bin/fusermount{,3} rCx -> fusermount, /{usr/,}bin/fusermount{,3} rCx -> fusermount,
@ -23,13 +25,15 @@ profile sshfs @{exec_path} flags=(complain) {
@{PROC}/sys/fs/pipe-max-size r, @{PROC}/sys/fs/pipe-max-size r,
profile fusermount { profile fusermount flags=(complain) {
include <abstractions/base> include <abstractions/base>
include <abstractions/nameservice-strict> include <abstractions/nameservice-strict>
# To mount anything: # To mount anything:
capability sys_admin, capability sys_admin,
unix (connect, send, receive) type=stream peer=(label="sshfs",addr=none),
/{usr/,}bin/fusermount{,3} mr, /{usr/,}bin/fusermount{,3} mr,
mount fstype={fuse,fuse.sshfs} -> @{HOME}/*/, mount fstype={fuse,fuse.sshfs} -> @{HOME}/*/,