diff --git a/apparmor.d/groups/children/child-open-strict b/apparmor.d/groups/children/child-open-strict new file mode 100644 index 00000000..f2efd5ad --- /dev/null +++ b/apparmor.d/groups/children/child-open-strict @@ -0,0 +1,33 @@ +# 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 & folders. + +abi , + +include + +profile child-open-strict { + include + include + + @{open_path} mrix, + @{sh_path} r, + + # Browsers + @{bin}/chromium rPx, + @{browsers_path} rPx, + + # Files explorer + @{bin}/nautilus rPx, + @{bin}/dolphin rPx, + + /dev/tty rw, + + include if exists + include if exists +}