mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
profiles: allow ro mounts in fusermount3 profile
These are needed by e.g. AppImages Closes: https://bugs.launchpad.net/bugs/2098993 Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
125ef7a8cb
commit
a20409cf1e
1 changed files with 7 additions and 0 deletions
|
@ -9,12 +9,19 @@ profile fusermount3 /usr/bin/fusermount3 {
|
||||||
capability sys_admin,
|
capability sys_admin,
|
||||||
capability dac_read_search,
|
capability dac_read_search,
|
||||||
|
|
||||||
|
# Allow both rw and ro type mounts (e.g. AppImage uses ro)
|
||||||
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> @{HOME}/**/,
|
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) -> /mnt/{,**/},
|
||||||
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> @{run}/user/@{uid}/*/,
|
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) -> /media/**/,
|
||||||
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> /tmp/**/,
|
mount fstype=@{fuse_types} options=(nosuid,nodev,rw) -> /tmp/**/,
|
||||||
|
|
||||||
|
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/**/,
|
||||||
|
|
||||||
umount @{HOME}/**/,
|
umount @{HOME}/**/,
|
||||||
umount /mnt/{,**/},
|
umount /mnt/{,**/},
|
||||||
umount @{run}/user/@{uid}/*/,
|
umount @{run}/user/@{uid}/*/,
|
||||||
|
|
Loading…
Add table
Reference in a new issue