2025-01-30 09:24:32 -05:00
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
|
2025-02-06 16:11:10 -05:00
|
|
|
@{fuse_types} = {fuse,fuse.*,fuseblk,fusectl}
|
|
|
|
profile fusermount3 /usr/bin/fusermount3 {
|
2025-01-30 09:24:32 -05:00
|
|
|
include <abstractions/base>
|
2025-02-06 16:11:10 -05:00
|
|
|
include <abstractions/nameservice-strict>
|
2025-01-30 09:24:32 -05:00
|
|
|
|
|
|
|
capability sys_admin,
|
2025-02-06 16:11:10 -05:00
|
|
|
capability dac_read_search,
|
|
|
|
|
2025-02-20 09:42:32 -08:00
|
|
|
# Allow both rw and ro type mounts (e.g. AppImage uses ro)
|
2025-02-07 09:51:30 -05:00
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> @{HOME}/**/,
|
2025-02-10 10:38:02 -05:00
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> /mnt/{,**/},
|
2025-02-06 16:11:10 -05:00
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> @{run}/user/@{uid}/*/,
|
2025-02-07 09:51:30 -05:00
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> /media/**/,
|
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> /tmp/**/,
|
2025-02-06 16:11:10 -05:00
|
|
|
|
2025-02-20 09:42:32 -08:00
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,ro) -> @{HOME}/**/,
|
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,ro) -> /mnt/{,**/},
|
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,ro) -> @{run}/user/@{uid}/*/,
|
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,ro) -> /media/**/,
|
|
|
|
mount fstype=@{fuse_types} options=(nosuid,nodev,ro) -> /tmp/**/,
|
|
|
|
|
2025-02-07 09:51:30 -05:00
|
|
|
umount @{HOME}/**/,
|
2025-02-10 10:38:02 -05:00
|
|
|
umount /mnt/{,**/},
|
2025-02-06 16:11:10 -05:00
|
|
|
umount @{run}/user/@{uid}/*/,
|
2025-02-07 09:51:30 -05:00
|
|
|
umount /media/**/,
|
|
|
|
umount /tmp/**/,
|
2025-01-30 09:24:32 -05:00
|
|
|
|
|
|
|
/dev/fuse rw,
|
|
|
|
|
2025-02-06 16:11:10 -05:00
|
|
|
@{etc_ro}/fuse.conf r,
|
2025-01-30 09:24:32 -05:00
|
|
|
@{PROC}/@{pid}/mounts r,
|
|
|
|
|
|
|
|
/usr/bin/fusermount3 mr,
|
|
|
|
|
|
|
|
include if exists <local/fusermount3>
|
|
|
|
}
|
2025-02-06 16:11:10 -05:00
|
|
|
|
|
|
|
# vim:syntax=apparmor
|