* Replace @{HOME}/.config with @{user_config_dirs}
* Replace @{HOME}/.cache with @{user_cache_dirs}
* Replace @{HOME}/.local/state with @{user_state_dirs}
* Add missing user_share_dirs to apparmor.d/tunables/home.d/apparmor.d
* Update docs/variables.md
* Replace @{HOME}/.local/share with @{user_share_dirs}
* Replace @{HOME}/.local/lib with @{user_lib_dirs}
* Revert "Add missing user_share_dirs to apparmor.d/tunables/home.d/apparmor.d"
This reverts commit 9525003098.
64 lines
1.4 KiB
Text
64 lines
1.4 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2017-2021 Mikhail Morfikov
|
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/fuseiso
|
|
profile fuseiso @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
# Be able to mount ISO images
|
|
mount fstype=fuse.fuseiso -> @{HOME}/*/,
|
|
mount fstype=fuse.fuseiso -> @{HOME}/*/*/,
|
|
mount fstype=fuse.fuseiso -> @{user_cache_dirs}/**/,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/fusermount{,3} rCx -> fusermount,
|
|
|
|
# Where to mount ISO files
|
|
owner @{HOME}/*/ rw,
|
|
owner @{HOME}/*/*/ rw,
|
|
owner @{user_cache_dirs}/**/ r,
|
|
|
|
owner @{HOME}/.mtab.fuseiso rwk,
|
|
owner @{HOME}/.mtab.fuseiso.new rw,
|
|
|
|
# Image files to be mounted
|
|
owner @{user_img_dirs}/{,**} rwk,
|
|
|
|
/dev/fuse rw,
|
|
|
|
profile fusermount {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
# To mount anything:
|
|
capability sys_admin,
|
|
|
|
capability dac_read_search,
|
|
|
|
mount fstype={fuse,fuse.fuseiso} -> @{HOME}/*/,
|
|
mount fstype={fuse,fuse.fuseiso} -> @{HOME}/*/*/,
|
|
mount fstype={fuse,fuse.fuseiso} -> @{user_cache_dirs}/**/,
|
|
|
|
@{bin}/fusermount{,3} mr,
|
|
|
|
/etc/fuse.conf r,
|
|
|
|
# Image files to be mounted
|
|
owner @{user_img_dirs}/{,**} r,
|
|
|
|
@{PROC}/@{pid}/mounts r,
|
|
|
|
/dev/fuse rw,
|
|
|
|
}
|
|
|
|
include if exists <local/fuseiso>
|
|
}
|