66 lines
2 KiB
Text
66 lines
2 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/flatpak-session-helper
|
|
profile flatpak-session-helper @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/p11-kit>
|
|
include <abstractions/ssl_certs>
|
|
|
|
signal send set=(hup int) peer=user_unconfined,
|
|
signal send set=(int) peer=@{p_systemd},
|
|
signal send set=(int) peer=flatpak-app,
|
|
|
|
#aa:dbus own bus=session name=org.freedesktop.Flatpak
|
|
|
|
dbus receive bus=session
|
|
interface=org.freedesktop.DBus.Introspectable
|
|
member=Introspect
|
|
peer=(name=@{busname}, label=gnome-shell),
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{shells_path} rUx -> user_unconfined,
|
|
@{bin}/dbus-monitor rPUx,
|
|
@{bin}/env rix,
|
|
@{bin}/flatpak rPx,
|
|
@{bin}/getent rix,
|
|
@{bin}/p11-kit rix,
|
|
@{bin}/pkexec rCx -> pkexec,
|
|
@{bin}/printenv rix,
|
|
@{bin}/ps rPx,
|
|
@{bin}/test rix,
|
|
@{bin}/touch rix,
|
|
@{lib}/p11-kit/p11-kit-remote rix,
|
|
@{lib}/p11-kit/p11-kit-server rix,
|
|
/var/lib/flatpak/app/*/**/@{bin}/** rPx -> flatpak-app,
|
|
/var/lib/flatpak/app/*/**/@{lib}/** rPx -> flatpak-app,
|
|
|
|
owner @{user_config_dirs}/mimeapps.list w,
|
|
|
|
owner @{run}/user/@{uid}/.flatpak-helper/{,**} rw,
|
|
owner @{run}/user/@{uid}/.flatpak-helper/pkcs11-flatpak-@{int} rw,
|
|
|
|
owner @{PROC}/@{pids}/fd/ r,
|
|
|
|
/dev/ptmx rw,
|
|
|
|
profile pkexec {
|
|
include <abstractions/base>
|
|
include <abstractions/app/pkexec>
|
|
|
|
include if exists <local/flatpak-session-helper_pkexec>
|
|
}
|
|
|
|
include if exists <local/flatpak-session-helper>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|