* 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.
This commit is contained in:
ShellCode 2023-07-27 13:20:19 +02:00 committed by GitHub
parent fe0238250a
commit 0f9b7cb474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 75 additions and 73 deletions

View file

@ -37,12 +37,12 @@ profile transmission-qt @{exec_path} {
owner @{user_torrents_dirs}/ r,
owner @{user_torrents_dirs}/** rw,
owner @{HOME}/.config/transmission/ rw,
owner @{HOME}/.config/transmission/** rwk,
owner @{user_config_dirs}/transmission/ rw,
owner @{user_config_dirs}/transmission/** rwk,
owner @{HOME}/.cache/ rw,
owner @{HOME}/.cache/transmission/ rw,
owner @{HOME}/.cache/transmission/** rwk,
owner @{user_cache_dirs}/ rw,
owner @{user_cache_dirs}/transmission/ rw,
owner @{user_cache_dirs}/transmission/** rwk,
owner /tmp/tr_session_id_* rwk,
@ -53,7 +53,7 @@ profile transmission-qt @{exec_path} {
@{PROC}/sys/kernel/random/uuid r,
# To configure Qt5 settings (theme, font, icons, etc.) under DE/WM without Qt integration
owner @{HOME}/.config/qt5ct/{,**} r,
owner @{user_config_dirs}/qt5ct/{,**} r,
/usr/share/qt5ct/** r,
/usr/share/hwdata/pnp.ids r,

View file

@ -34,7 +34,7 @@ profile umount @{exec_path} {
@{HOME}/ r,
@{HOME}/*/ r,
@{HOME}/*/*/ r,
@{HOME}/.cache/*/*/ r,
@{user_cache_dirs}/*/*/ r,
@{MOUNTS}/*/ r,
@{MOUNTS}/*/*/ r,

View file

@ -37,9 +37,9 @@ profile yt-dlp @{exec_path} {
owner @{user_music_dirs}/{,**} rwk,
owner @{user_videos_dirs}/{,**} rwk,
owner @{HOME}/.cache/ rw,
owner @{HOME}/.cache/yt-dlp/ rw,
owner @{HOME}/.cache/yt-dlp/** rw,
owner @{user_cache_dirs}/ rw,
owner @{user_cache_dirs}/yt-dlp/ rw,
owner @{user_cache_dirs}/yt-dlp/** rw,
owner @{PROC}/@{pid}/fd/ r,