feat(profile): add fstrim.

This commit is contained in:
Alexandre Pujol 2024-09-10 18:15:27 +01:00
parent f3094cc741
commit 50b0e09a9a
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View 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