From aa9a673fb67ca6439908b041659b378d0cc1ebd3 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 3 Jun 2022 20:21:20 +0100 Subject: [PATCH] feat(profiles): add anacron. --- apparmor.d/profiles-a-f/anacron | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apparmor.d/profiles-a-f/anacron diff --git a/apparmor.d/profiles-a-f/anacron b/apparmor.d/profiles-a-f/anacron new file mode 100644 index 00000000..ed1e9635 --- /dev/null +++ b/apparmor.d/profiles-a-f/anacron @@ -0,0 +1,24 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}{s,}bin/anacron +profile anacron @{exec_path} { + include + + @{exec_path} mr, + + /{usr/,}bin/{,ba,da}sh rix, + /{usr/,}bin/run-parts rPx, + + / r, + /etc/anacrontab r, + + /var/spool/anacron/cron.* rw, + + include if exists +} \ No newline at end of file