2024-10-02 15:04:08 +02:00
|
|
|
abi <abi/4.0>,
|
2023-04-23 18:27:49 +02:00
|
|
|
|
|
|
|
# requires <tunables/home>
|
|
|
|
|
2023-07-27 13:20:19 +02:00
|
|
|
owner @{user_config_dirs}/trashrc rw,
|
|
|
|
owner @{user_config_dirs}/trashrc.lock rwk,
|
2023-08-17 21:01:53 +02:00
|
|
|
owner @{user_config_dirs}/#@{int} rwk,
|
|
|
|
owner @{user_config_dirs}/trashrc.* rwl -> @{user_config_dirs}/#@{int},
|
2023-04-23 18:27:49 +02:00
|
|
|
|
2023-08-17 21:01:53 +02:00
|
|
|
owner @{run}/user/@{uid}/#@{int} rw,
|
|
|
|
owner @{run}/user/@{uid}/trash.so*.[0-9].slave-socket rwl -> @{run}/user/@{uid}/#@{int},
|
2023-04-23 18:27:49 +02:00
|
|
|
|
|
|
|
# Home trash location
|
2023-07-27 13:20:19 +02:00
|
|
|
owner @{user_share_dirs}/Trash/ rw,
|
2023-08-17 21:01:53 +02:00
|
|
|
owner @{user_share_dirs}/Trash/#@{int} rw,
|
|
|
|
owner @{user_share_dirs}/Trash/directorysizes{,.*} rwl -> @{user_share_dirs}/Trash/#@{int},
|
2023-07-27 13:20:19 +02:00
|
|
|
owner @{user_share_dirs}/Trash/files/{,**} rw,
|
|
|
|
owner @{user_share_dirs}/Trash/info/ rw,
|
|
|
|
owner @{user_share_dirs}/Trash/info/*.trashinfo{,.*} rw,
|
|
|
|
owner @{user_share_dirs}/Trash/expunged/ rw,
|
|
|
|
owner @{user_share_dirs}/Trash/expunged/[0-9]* rw,
|
|
|
|
owner @{user_share_dirs}/Trash/expunged/[0-9]*/ rw,
|
|
|
|
owner @{user_share_dirs}/Trash/expunged/[0-9]*/** rw,
|
2023-04-23 18:27:49 +02:00
|
|
|
|
|
|
|
# Partitions' trash location when the admin creates the .Trash/ folder in the top lvl dir
|
|
|
|
owner /media/*/.Trash/ rw,
|
|
|
|
owner /media/*/.Trash/@{uid}/ rw,
|
2023-08-17 21:01:53 +02:00
|
|
|
owner /media/*/.Trash/@{uid}/#@{int} rw,
|
|
|
|
owner /media/*/.Trash/@{uid}/directorysizes{,.*} rwl -> /media/*/.Trash/@{uid}/#@{int},
|
2023-04-23 18:27:49 +02:00
|
|
|
owner /media/*/.Trash/@{uid}/files/{,**} rw,
|
|
|
|
owner /media/*/.Trash/@{uid}/info/ rw,
|
|
|
|
owner /media/*/.Trash/@{uid}/info/*.trashinfo{,.*} rw,
|
|
|
|
owner /media/*/.Trash/@{uid}/expunged/ rw,
|
|
|
|
owner /media/*/.Trash/@{uid}/expunged/[0-9]* rw,
|
|
|
|
owner /media/*/.Trash/@{uid}/expunged/[0-9]*/ rw,
|
|
|
|
owner /media/*/.Trash/@{uid}/expunged/[0-9]*/** rw,
|
|
|
|
|
|
|
|
# Partitions' trash location when the admin doesn't create the .Trash/ folder in the top lvl dir
|
|
|
|
owner /media/*/.Trash-@{uid}/ rw,
|
2023-08-17 21:01:53 +02:00
|
|
|
owner /media/*/.Trash-@{uid}/#@{int} rw,
|
|
|
|
owner /media/*/.Trash-@{uid}/directorysizes{,.*} rwl -> /media/*/.Trash-@{uid}/#@{int},
|
2023-04-23 18:27:49 +02:00
|
|
|
owner /media/*/.Trash-@{uid}/files/{,**} rw,
|
|
|
|
owner /media/*/.Trash-@{uid}/info/ rw,
|
|
|
|
owner /media/*/.Trash-@{uid}/info/*.trashinfo{,.*} rw,
|
|
|
|
owner /media/*/.Trash-@{uid}/expunged/ rw,
|
|
|
|
owner /media/*/.Trash-@{uid}/expunged/[0-9]* rw,
|
|
|
|
owner /media/*/.Trash-@{uid}/expunged/[0-9]*/ rw,
|
|
|
|
owner /media/*/.Trash-@{uid}/expunged/[0-9]*/** rw,
|
|
|
|
|
|
|
|
# Removable media's trash location when the admin creates the .Trash/ folder in the top lvl dir
|
|
|
|
owner /media/*/*/.Trash/ rw,
|
|
|
|
owner /media/*/*/.Trash/@{uid}/ rw,
|
2023-08-17 21:01:53 +02:00
|
|
|
owner /media/*/*/.Trash/@{uid}/#@{int} rw,
|
|
|
|
owner /media/*/*/.Trash/@{uid}/directorysizes{,.*} rwl -> /media/*/*/.Trash/@{uid}/#@{int},
|
2023-04-23 18:27:49 +02:00
|
|
|
owner /media/*/*/.Trash/@{uid}/files/{,**} rw,
|
|
|
|
owner /media/*/*/.Trash/@{uid}/info/ rw,
|
|
|
|
owner /media/*/*/.Trash/@{uid}/info/*.trashinfo{,.*} rw,
|
|
|
|
owner /media/*/*/.Trash/@{uid}/expunged/ rw,
|
|
|
|
owner /media/*/*/.Trash/@{uid}/expunged/[0-9]* rw,
|
|
|
|
owner /media/*/*/.Trash/@{uid}/expunged/[0-9]*/ rw,
|
|
|
|
owner /media/*/*/.Trash/@{uid}/expunged/[0-9]*/** rw,
|
|
|
|
|
|
|
|
# Removable media's trash location when the admin doesn't create the .Trash/ folder in the top lvl dir
|
|
|
|
owner /media/*/*/.Trash-@{uid}/ rw,
|
2023-08-17 21:01:53 +02:00
|
|
|
owner /media/*/*/.Trash-@{uid}/#@{int} rw,
|
|
|
|
owner /media/*/*/.Trash-@{uid}/directorysizes{,.*} rwl -> /media/*/*/.Trash-@{uid}/#@{int},
|
2023-04-23 18:27:49 +02:00
|
|
|
owner /media/*/*/.Trash-@{uid}/files/{,**} rw,
|
|
|
|
owner /media/*/*/.Trash-@{uid}/info/ rw,
|
|
|
|
owner /media/*/*/.Trash-@{uid}/info/*.trashinfo{,.*} rw,
|
|
|
|
owner /media/*/*/.Trash-@{uid}/expunged/ rw,
|
|
|
|
owner /media/*/*/.Trash-@{uid}/expunged/[0-9]* rw,
|
|
|
|
owner /media/*/*/.Trash-@{uid}/expunged/[0-9]*/ rw,
|
|
|
|
owner /media/*/*/.Trash-@{uid}/expunged/[0-9]*/** rw,
|
|
|
|
|
|
|
|
include if exists <abstractions/trash.d>
|