mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Trash: needs more control over expunged directory.
This commit is contained in:
parent
0ad600f90f
commit
1d1492c750
@ -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,
|
|
||||||
|
Loading…
Reference in New Issue
Block a user