AppArmor Profiles for Electrum
AppArmor Profiles for Electrum
This commit is contained in:
committed by
Rogit config --global credential.helper store
parent
5f95d919df
commit
dd72b5976b
36
contrib/apparmor/electrum.appimage
Normal file
36
contrib/apparmor/electrum.appimage
Normal 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>
|
||||
}
|
||||
Reference in New Issue
Block a user