Flatpack: add flatpak-session-helper.

This commit is contained in:
Alexandre Pujol 2022-02-22 20:52:46 +00:00
parent 2064783251
commit 8c2d39c232
Failed to generate hash of commit
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/flatpak-session-helper
profile flatpak-session-helper @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/p11-kit>
include <abstractions/ssl_certs>
@{exec_path} mr,
/{usr/,}bin/p11-kit rix,
/{usr/,}lib/p11-kit/p11-kit-server rix,
/{usr/,}lib/p11-kit/p11-kit-remote rix,
owner @{run}/user/@{uid}/.flatpak-helper/{,**} rw,
owner @{run}/user/@{uid}/.flatpak-helper/pkcs11-flatpak-[0-9]* rw,
owner @{PROC}/@{pids}/fd/ r,
include if exists <local/flatpak-session-helper>
}

View file

@ -36,6 +36,7 @@ e2image complain
evince complain
fatlabel complain
fdisk complain
flatpak-session-helper complain
fsck-ext4 complain
fuse-overlayfs complain
fusermount complain