mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(profile): add child-open-strict
This commit is contained in:
parent
f8deb46591
commit
89def65a17
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 New Issue
Block a user