1
0

AppArmor Profiles for Electrum

AppArmor Profiles for Electrum
This commit is contained in:
robertmin2
2024-04-12 01:23:53 +03:00
committed by Rogit config --global credential.helper store
parent 5f95d919df
commit dd72b5976b
4 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Credits : Mikhail Morfikov
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/fusermount{,3}
profile fusermount @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice>
# To mount anything:
# fusermount: mount failed: Operation not permitted
capability sys_admin,
# For jmtpfs
capability dac_read_search,
@{exec_path} mr,
# Where to mount ISO files
owner @{HOME}/*/ rw,
owner @{HOME}/*/*/ rw,
owner @{HOME}/.cache/**/ rw,
# Be able to mount ISO images
mount fstype={fuse,fuse.*},
unmount fstype={fuse,fuse.*},
/etc/fuse.conf r,
/dev/fuse rw,
@{PROC}/@{pid}/mounts r,
include if exists <local/fusermount>
}