Trash: needs more control over expunged directory.

This commit is contained in:
Alexandre Pujol 2021-04-01 21:59:14 +01:00
parent 0ad600f90f
commit 1d1492c750
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles # apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov # Copyright (C) 2018-2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>, abi <abi/3.0>,
@ -19,8 +20,7 @@
owner @{user_share_dirs}/Trash/files/{,**} rw, owner @{user_share_dirs}/Trash/files/{,**} rw,
owner @{user_share_dirs}/Trash/info/ rw, owner @{user_share_dirs}/Trash/info/ rw,
owner @{user_share_dirs}/Trash/info/*.trashinfo{,.*} rw, owner @{user_share_dirs}/Trash/info/*.trashinfo{,.*} rw,
owner @{user_share_dirs}/Trash/expunged/ rw, owner @{user_share_dirs}/Trash/expunged/{,**} rw,
owner @{user_share_dirs}/Trash/expunged/[0-9]* rw,
# Partitions' trash location when the admin creates the .Trash/ folder in the top lvl dir # Partitions' trash location when the admin creates the .Trash/ folder in the top lvl dir
owner /{media,mnt}/*/.Trash/ rw, owner /{media,mnt}/*/.Trash/ rw,
@ -30,8 +30,7 @@
owner /{media,mnt}/*/.Trash/[0-9]*/files/{,**} rw, owner /{media,mnt}/*/.Trash/[0-9]*/files/{,**} rw,
owner /{media,mnt}/*/.Trash/[0-9]*/info/ rw, owner /{media,mnt}/*/.Trash/[0-9]*/info/ rw,
owner /{media,mnt}/*/.Trash/[0-9]*/info/*.trashinfo{,.*} rw, owner /{media,mnt}/*/.Trash/[0-9]*/info/*.trashinfo{,.*} rw,
owner /{media,mnt}/*/.Trash/[0-9]*/expunged/ rw, owner /{media,mnt}/*/.Trash/[0-9]*/expunged/{,**} rw,
owner /{media,mnt}/*/.Trash/[0-9]*/expunged/[0-9]* rw,
# Partitions' trash location when the admin doesn't create the .Trash/ folder in the top lvl dir # Partitions' trash location when the admin doesn't create the .Trash/ folder in the top lvl dir
owner /{media,mnt}/*/.Trash-[0-9]*/ rw, owner /{media,mnt}/*/.Trash-[0-9]*/ rw,
@ -40,5 +39,4 @@
owner /{media,mnt}/*/.Trash-[0-9]*/files/{,**} rw, owner /{media,mnt}/*/.Trash-[0-9]*/files/{,**} rw,
owner /{media,mnt}/*/.Trash-[0-9]*/info/ rw, owner /{media,mnt}/*/.Trash-[0-9]*/info/ rw,
owner /{media,mnt}/*/.Trash-[0-9]*/info/*.trashinfo{,.*} rw, owner /{media,mnt}/*/.Trash-[0-9]*/info/*.trashinfo{,.*} rw,
owner /{media,mnt}/*/.Trash-[0-9]*/expunged/ rw, owner /{media,mnt}/*/.Trash-[0-9]*/expunged/{,**} rw,
owner /{media,mnt}/*/.Trash-[0-9]*/expunged/[0-9]* rw,