From b089a4d2c5e9d6af1116f4104302ba6d76290a90 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 28 Mar 2024 16:40:16 +0000 Subject: [PATCH] feat(profile): add the child-open-browsers profile. --- .../groups/children/child-open-browsers | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 apparmor.d/groups/children/child-open-browsers diff --git a/apparmor.d/groups/children/child-open-browsers b/apparmor.d/groups/children/child-open-browsers new file mode 100644 index 00000000..46643c5e --- /dev/null +++ b/apparmor.d/groups/children/child-open-browsers @@ -0,0 +1,29 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +# This profile is designed to be used in a child profile to limit what +# confined application can invoke via open helper. + +# This version of child-open only allow to open browsers. + +# Note: This profile does not specify an attachment path because it is +# intended to be used only via "Px -> child-open-browsers" exec transitions +# from other profiles. + +abi , + +include + +profile child-open-browsers { + include + include + + @{open_path} mrix, + + @{bin}/chromium rPx, + @{browsers_path} rPx, + + include if exists + include if exists +}