mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge initial fusermount3 profile
Initial profile for fusermount3. Feedback welcome 😄 MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1514 Approved-by: Georgia Garcia <georgia.garcia@canonical.com> Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
commit
4c64266f2b
1 changed files with 34 additions and 0 deletions
34
profiles/apparmor.d/fusermount3
Normal file
34
profiles/apparmor.d/fusermount3
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
abi <abi/4.0>,
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{fuse_types} = {fuse,fuse.*,fuseblk,fusectl}
|
||||||
|
profile fusermount3 /usr/bin/fusermount3 {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
capability sys_admin,
|
||||||
|
capability dac_read_search,
|
||||||
|
|
||||||
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> @{HOME}/**/,
|
||||||
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> /mnt/{,**/},
|
||||||
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> @{run}/user/@{uid}/*/,
|
||||||
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> /media/**/,
|
||||||
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> /tmp/**/,
|
||||||
|
|
||||||
|
umount @{HOME}/**/,
|
||||||
|
umount /mnt/{,**/},
|
||||||
|
umount @{run}/user/@{uid}/*/,
|
||||||
|
umount /media/**/,
|
||||||
|
umount /tmp/**/,
|
||||||
|
|
||||||
|
/dev/fuse rw,
|
||||||
|
|
||||||
|
@{etc_ro}/fuse.conf r,
|
||||||
|
@{PROC}/@{pid}/mounts r,
|
||||||
|
|
||||||
|
/usr/bin/fusermount3 mr,
|
||||||
|
|
||||||
|
include if exists <local/fusermount3>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
Loading…
Add table
Reference in a new issue