From 5eb4e1f52650586c8c25b006c651adc637cfdc36 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 7 Apr 2022 21:06:24 +0100 Subject: [PATCH] feat: add initial version of atd. --- apparmor.d/profiles-a-f/atd | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 apparmor.d/profiles-a-f/atd diff --git a/apparmor.d/profiles-a-f/atd b/apparmor.d/profiles-a-f/atd new file mode 100644 index 00000000..19242483 --- /dev/null +++ b/apparmor.d/profiles-a-f/atd @@ -0,0 +1,40 @@ +# 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/atd +profile atd @{exec_path} { + include + include + include + + capability audit_write, + capability chown, + capability dac_read_search, + capability setgid, + capability setuid, + capability sys_resource, + + signal (receive) set=hup, + + @{exec_path} mr, + + /{usr/,}bin/{,ba,da}sh rix, + /{usr/,}{s,}bin/sendmail rPUx, + + /var/spool/cron/atjobs/{,*} rwl, + /var/spool/cron/atspool/{,*} rwl, + + @{run}/atd.pid rwk, + + @{PROC}/@{pid}/loginuid rw, + @{PROC}/@{pid}/uid_map r, + @{PROC}/1/limits r, + @{PROC}/loadavg r, + + include if exists +} \ No newline at end of file