feat(profile): add fstrim.
This commit is contained in:
parent
f3094cc741
commit
50b0e09a9a
1 changed files with 31 additions and 0 deletions
31
apparmor.d/profiles-a-f/fstrim
Normal file
31
apparmor.d/profiles-a-f/fstrim
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/fstrim
|
||||||
|
profile fstrim @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/disks-write>
|
||||||
|
|
||||||
|
capability dac_override,
|
||||||
|
capability sys_admin,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/fstab r,
|
||||||
|
|
||||||
|
@{HOMEDIRS}/ r,
|
||||||
|
@{MOUNTDIRS}/ r,
|
||||||
|
@{MOUNTS}/ r,
|
||||||
|
/ r,
|
||||||
|
/boot/ r,
|
||||||
|
/var/ r,
|
||||||
|
|
||||||
|
include if exists <local/fstrim>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
Loading…
Add table
Add a link
Reference in a new issue