mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(profile): add child-open-strict
This commit is contained in:
parent
f8deb46591
commit
89def65a17
1 changed files with 33 additions and 0 deletions
33
apparmor.d/groups/children/child-open-strict
Normal file
33
apparmor.d/groups/children/child-open-strict
Normal 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>
|
||||
}
|
Loading…
Reference in a new issue