From 4702e8fdd3b70e6f9b7e733aa079ee0f230a62fe Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 7 Apr 2022 21:11:21 +0100 Subject: [PATCH] feat: add nullmailer-send. --- apparmor.d/profiles-m-r/nullmailer-send | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apparmor.d/profiles-m-r/nullmailer-send diff --git a/apparmor.d/profiles-m-r/nullmailer-send b/apparmor.d/profiles-m-r/nullmailer-send new file mode 100644 index 00000000..01d2465c --- /dev/null +++ b/apparmor.d/profiles-m-r/nullmailer-send @@ -0,0 +1,27 @@ +# 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/nullmailer-send +profile nullmailer-send @{exec_path} { + include + include + include + + @{exec_path} mr, + + /{usr/,}lib/nullmailer/smtp rix, + + /etc/mailname r, + /etc/nullmailer/{,*} r, + + /var/spool/nullmailer/{,**} rw, + + @{run}/resolvconf/resolv.conf r, + + include if exists +} \ No newline at end of file