diff --git a/apparmor.d/abstractions/thumbnails-cache-read b/apparmor.d/abstractions/thumbnails-cache-read index fd256c5e..9a063c1e 100644 --- a/apparmor.d/abstractions/thumbnails-cache-read +++ b/apparmor.d/abstractions/thumbnails-cache-read @@ -3,12 +3,8 @@ # Copyright (C) 2023-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only - owner @{HOME}/thumbnails/ r, - owner @{HOME}/thumbnails/{large,normal}/ r, - owner @{HOME}/thumbnails/{large,normal}/@{hex}.png r, - owner @{user_cache_dirs}/thumbnails/ r, owner @{user_cache_dirs}/thumbnails/{*large,normal}/ r, - owner @{user_cache_dirs}/thumbnails/{*large,normal}/@{hex}.png r, + owner @{user_cache_dirs}/thumbnails/{*large,normal}/@{hex32}.png r, include if exists \ No newline at end of file diff --git a/apparmor.d/abstractions/thumbnails-cache-write b/apparmor.d/abstractions/thumbnails-cache-write index 80e2f833..a861814d 100644 --- a/apparmor.d/abstractions/thumbnails-cache-write +++ b/apparmor.d/abstractions/thumbnails-cache-write @@ -3,14 +3,10 @@ # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only - owner @{HOME}/thumbnails/ rw, - owner @{HOME}/thumbnails/{large,normal}/ rw, - owner @{HOME}/thumbnails/{large,normal}/#@{int} rw, - owner @{HOME}/thumbnails/{large,normal}/@{hex}.png rwl -> @{user_cache_dirs}/thumbnails/{large,normal}/#@{int}, - owner @{user_cache_dirs}/thumbnails/ rw, owner @{user_cache_dirs}/thumbnails/{large,normal}/ rw, + owner @{user_cache_dirs}/thumbnails/{large,normal}/@{hex32}.png rwl -> @{user_cache_dirs}/thumbnails/{large,normal}/#@{int}, + owner @{user_cache_dirs}/thumbnails/{large,normal}/@{hex32}.png.@{rand6} rw, owner @{user_cache_dirs}/thumbnails/{large,normal}/#@{int} rw, - owner @{user_cache_dirs}/thumbnails/{large,normal}/@{hex}.png rwl -> @{user_cache_dirs}/thumbnails/{large,normal}/#@{int}, include if exists \ No newline at end of file