mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(profile): add the child-open-browsers profile.
This commit is contained in:
parent
e77f8db40f
commit
b089a4d2c5
1 changed files with 29 additions and 0 deletions
29
apparmor.d/groups/children/child-open-browsers
Normal file
29
apparmor.d/groups/children/child-open-browsers
Normal file
|
@ -0,0 +1,29 @@
|
|||
# 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.
|
||||
|
||||
# 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 <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
profile child-open-browsers {
|
||||
include <abstractions/base>
|
||||
include <abstractions/desktop>
|
||||
|
||||
@{open_path} mrix,
|
||||
|
||||
@{bin}/chromium rPx,
|
||||
@{browsers_path} rPx,
|
||||
|
||||
include if exists <usr/child-open-browsers.d>
|
||||
include if exists <local/child-open-browsers>
|
||||
}
|
Loading…
Reference in a new issue