summaryrefslogtreecommitdiff
path: root/samples/rust/rust_configfs.rs
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2025-05-16 21:28:03 +0200
committerJan Kara <jack@suse.cz>2025-05-19 22:46:34 +0200
commit58f5fbeb367ff6f30a2448b2cad70f70b2de4b06 (patch)
tree079ca8d6481fcdd10d2ca7f21fde91841fed6217 /samples/rust/rust_configfs.rs
parent90d1238047a6479674db4b35264e9519186af9e8 (diff)
fanotify: support watching filesystems and mounts inside userns
An unprivileged user is allowed to create an fanotify group and add inode marks, but not filesystem, mntns and mount marks. Add limited support for setting up filesystem, mntns and mount marks by an unprivileged user under the following conditions: 1. User has CAP_SYS_ADMIN in the user ns where the group was created 2.a. User has CAP_SYS_ADMIN in the user ns where the sb was created OR (in case setting up a mntns mark) 2.b. User has CAP_SYS_ADMIN in the user ns associated with the mntns Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20250516192803.838659-3-amir73il@gmail.com
Diffstat (limited to 'samples/rust/rust_configfs.rs')
0 files changed, 0 insertions, 0 deletions