feat(profile): add some new profiles.
This commit is contained in:
parent
ed1ea18a9e
commit
386402ed70
6 changed files with 150 additions and 0 deletions
22
apparmor.d/groups/apt/apt-helper
Normal file
22
apparmor.d/groups/apt/apt-helper
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/apt/apt-helper
|
||||
profile apt-helper @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/apt-common>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/nm-online rPx,
|
||||
@{bin}/systemctl rPx -> child-systemctl,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
include if exists <local/apt-helper>
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/xdg-desktop-portal-rewrite-launchers
|
||||
profile xdg-desktop-portal-rewrite-launchers @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus/org.gtk.vfs.MountTracker>
|
||||
include <abstractions/bus-session>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/xdg-desktop-portal-rewrite-launchers>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue