feat(profile): add child-open-strict

This commit is contained in:
Alexandre Pujol 2024-03-30 14:49:37 +00:00
parent f8deb46591
commit 89def65a17
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,33 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# 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 <abi/3.0>,
include <tunables/global>
profile child-open-strict {
include <abstractions/base>
include <abstractions/desktop>
@{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 <usr/child-open-strict.d>
include if exists <local/child-open-strict>
}