feat(abs): add the fusermount abstraction.
This commit is contained in:
parent
9aaf109383
commit
1009de7e6c
15 changed files with 67 additions and 179 deletions
|
|
@ -38,10 +38,7 @@ profile s3fs @{exec_path} {
|
|||
|
||||
profile fusermount {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
capability dac_read_search,
|
||||
capability sys_admin,
|
||||
include <abstractions/app/fusermount>
|
||||
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
|
|
@ -52,19 +49,11 @@ profile s3fs @{exec_path} {
|
|||
umount @{MOUNTS}/,
|
||||
umount @{MOUNTS}/*/,
|
||||
|
||||
@{bin}/fusermount{,3} mr,
|
||||
|
||||
/etc/fuse.conf r,
|
||||
|
||||
@{MOUNTS}/ r,
|
||||
@{MOUNTS}/*/ r,
|
||||
|
||||
owner @{tmp}/s3fstmp.* rw,
|
||||
|
||||
@{PROC}/@{pids}/mounts r,
|
||||
|
||||
/dev/fuse rw,
|
||||
|
||||
include if exists <local/s3fs_fusermount>
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,27 +69,14 @@ profile wechat-appimage @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
profile fusermount {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
capability dac_override,
|
||||
capability dac_read_search,
|
||||
capability sys_admin,
|
||||
include <abstractions/app/fusermount>
|
||||
|
||||
mount fstype=fuse.wechat-appimage.AppImage options=(ro nodev nosuid) -> @{tmp}/.mount_wechat@{word6}/,
|
||||
|
||||
umount @{tmp}/.mount_wechat@{word6}/,
|
||||
|
||||
@{bin}/fusermount{,3} mr,
|
||||
|
||||
@{lib_dirs}/wechat-appimage.AppImage r,
|
||||
|
||||
@{PROC}/@{pid}/mounts r,
|
||||
|
||||
/etc/fuse.conf r,
|
||||
|
||||
/dev/fuse rw,
|
||||
|
||||
include if exists <local/wechat-appimage_fusermount>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue