refractor: move more profiles to groups.

This commit is contained in:
Alexandre Pujol 2025-02-10 00:20:15 +01:00
parent fadc08b1ea
commit 9d74168be2
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
51 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,48 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/anacron
profile anacron @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
signal (receive) set=(usr1) peer=@{p_systemd},
@{exec_path} mr,
@{sh_path} rix,
@{bin}/run-parts rCx -> run-parts,
@{bin}/exim4 rPx,
/ r,
/etc/anacrontab r,
/var/spool/anacron/cron.* rwk,
@{HOME}/ r,
/tmp/file* rw,
profile run-parts {
include <abstractions/base>
@{bin}/run-parts mr,
/etc/cron.*/ r,
/etc/cron.*/* rPUx,
owner @{tmp}/#@{int} rw,
owner @{tmp}/file@{rand6} rw,
include if exists <local/anacron_run-parts>
}
include if exists <local/anacron>
}
# vim:syntax=apparmor