2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
owner @{HOME}/.config/trashrc rw,
|
|
|
|
owner @{HOME}/.config/trashrc.lock rwk,
|
|
|
|
owner @{HOME}/.config/#[0-9]*[0-9] rwk,
|
|
|
|
owner @{HOME}/.config/trashrc.* rwl -> @{HOME}/.config/#[0-9]*[0-9],
|
|
|
|
|
2020-10-25 10:23:34 +01:00
|
|
|
owner @{run}/user/[0-9]*/#[0-9]*[0-9] rw,
|
|
|
|
owner @{run}/user/[0-9]*/trash.so*.[0-9].slave-socket rwl -> @{run}/user/[0-9]*/#[0-9]*[0-9],
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# Home trash location
|
|
|
|
owner @{HOME}/.local/share/Trash/ rw,
|
|
|
|
owner @{HOME}/.local/share/Trash/#[0-9]*[0-9] rw,
|
|
|
|
owner @{HOME}/.local/share/Trash/directorysizes{,.*} rwl -> @{HOME}/.local/share/Trash/#[0-9]*[0-9],
|
|
|
|
owner @{HOME}/.local/share/Trash/files/{,**} rw,
|
|
|
|
owner @{HOME}/.local/share/Trash/info/ rw,
|
|
|
|
owner @{HOME}/.local/share/Trash/info/*.trashinfo{,.*} rw,
|
2021-03-13 09:47:36 +01:00
|
|
|
owner @{HOME}/.local/share/Trash/expunged/ rw,
|
|
|
|
owner @{HOME}/.local/share/Trash/expunged/[0-9]* rw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# Partitions' trash location when the admin creates the .Trash/ folder in the top lvl dir
|
|
|
|
owner /media/*/.Trash/ rw,
|
|
|
|
owner /media/*/.Trash/[0-9]*/ rw,
|
|
|
|
owner /media/*/.Trash/[0-9]*/#[0-9]*[0-9] rw,
|
|
|
|
owner /media/*/.Trash/[0-9]*/directorysizes{,.*} rwl -> /media/*/.Trash/[0-9]*/#[0-9]*[0-9],
|
|
|
|
owner /media/*/.Trash/[0-9]*/files/{,**} rw,
|
|
|
|
owner /media/*/.Trash/[0-9]*/info/ rw,
|
|
|
|
owner /media/*/.Trash/[0-9]*/info/*.trashinfo{,.*} rw,
|
2021-03-13 09:47:36 +01:00
|
|
|
owner /media/*/.Trash/[0-9]*/expunged/ rw,
|
|
|
|
owner /media/*/.Trash/[0-9]*/expunged/[0-9]* rw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# Partitions' trash location when the admin doesn't create the .Trash/ folder in the top lvl dir
|
|
|
|
owner /media/*/.Trash-[0-9]*/ rw,
|
|
|
|
owner /media/*/.Trash-[0-9]*/#[0-9]*[0-9] rw,
|
|
|
|
owner /media/*/.Trash-[0-9]*/directorysizes{,.*} rwl -> /media/*/.Trash-[0-9]*/#[0-9]*[0-9],
|
|
|
|
owner /media/*/.Trash-[0-9]*/files/{,**} rw,
|
|
|
|
owner /media/*/.Trash-[0-9]*/info/ rw,
|
|
|
|
owner /media/*/.Trash-[0-9]*/info/*.trashinfo{,.*} rw,
|
2021-03-13 09:47:36 +01:00
|
|
|
owner /media/*/.Trash-[0-9]*/expunged/ rw,
|
|
|
|
owner /media/*/.Trash-[0-9]*/expunged/[0-9]* rw,
|