feat(profile): add some new profiles.

This commit is contained in:
Alexandre Pujol 2023-12-09 11:39:10 +00:00
parent ed1ea18a9e
commit 386402ed70
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 150 additions and 0 deletions

View 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>
}

View file

@ -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>
}