From 3b4af3c89e6a1f295e87af677f2a0e572d15c8e5 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 4 Nov 2021 18:34:37 +0000 Subject: [PATCH] Add mono-sgen profile. --- apparmor.d/profiles-m-r/mono-sgen | 21 +++++++++++++++++++++ profiles.flags | 1 + 2 files changed, 22 insertions(+) create mode 100644 apparmor.d/profiles-m-r/mono-sgen diff --git a/apparmor.d/profiles-m-r/mono-sgen b/apparmor.d/profiles-m-r/mono-sgen new file mode 100644 index 00000000..c1a13b13 --- /dev/null +++ b/apparmor.d/profiles-m-r/mono-sgen @@ -0,0 +1,21 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/mono-sgen +profile mono-sgen @{exec_path} { + include + include + + @{exec_path} mr, + + /usr/share/.mono/{,**} rw, + + /etc/mono/{,**} r, + + include if exists +} \ No newline at end of file diff --git a/profiles.flags b/profiles.flags index 032a009c..37f82c1b 100644 --- a/profiles.flags +++ b/profiles.flags @@ -84,6 +84,7 @@ man complain mission-control complain mke2fs complain mkinitcpio attach_disconnected,complain +mono-sgen complain mount complain newgidmap complain newuidmap complain