# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

# Define some variables for some commonly used profile. They may be used in
# other profiles peer label.

# All variables that refer to a profile name should be prefixed with `p_`

# Name of the systemd profiles. Can be `unconfined` or `systemd`, `systemd-user`
@{p_sd}=unconfined
@{p_sdu}=unconfined
@{p_systemd_user}=unconfined
@{p_systemd}=unconfined

# Name of the dbus daemon profiles
@{p_dbus_accessibility}=dbus-accessibility

@{p_dbus_system}={dbus-system,unconfined}
@{p_dbus_session}={dbus-session,unconfined}

@{p_accounts_daemon}=accounts-daemon
@{p_apt_news}=apt_news
@{p_at_spi2_registryd}=at-spi2-registryd
@{p_avahi_daemon}=avahi-daemon
@{p_bluetoothd}=bluetoothd
@{p_colord}=colord
@{p_e2scrub_all}=e2scrub_all
@{p_e2scrub}=e2scrub
@{p_file_roller}=file-roller
@{p_fprintd}=fprintd
@{p_fwupd}=fwupd
@{p_fwupdmgr}=fwupdmgr
@{p_geoclue}=geoclue
@{p_gnome_session}={gnome-session-binary,gnome-session-service}
@{p_gnome_shell}=gnome-shell
@{p_gsd_media_keys}=gsd-media-keys
@{p_irqbalance}=irqbalance
@{p_logrotate}=logrotate
@{p_ModemManager}=ModemManager
@{p_nm_priv_helper}=nm-priv-helper
@{p_packagekitd}=packagekitd
@{p_pcscd}=pcscd
@{p_polkitd}=polkitd
@{p_power_profiles_daemon}=power-profiles-daemon
@{p_rsyslogd}=rsyslogd
@{p_rtkit_daemon}=rtkit-daemon
@{p_snap}=snap
@{p_systemd_coredump}=systemd-coredump
@{p_systemd_homed}=systemd-homed
@{p_systemd_hostnamed}=systemd-hostnamed
@{p_systemd_importd}=systemd-importd
@{p_systemd_initctl}=systemd-initctl
@{p_systemd_journal_remote}=systemd-journal-remote
@{p_systemd_journald}=systemd-journald
@{p_systemd_localed}=systemd-localed
@{p_systemd_logind}=systemd-logind
@{p_systemd_networkd}=systemd-networkd
@{p_systemd_oomd}=systemd-oomd
@{p_systemd_resolved}=systemd-resolved
@{p_systemd_rfkill}=systemd-rfkill
@{p_systemd_timedated}=systemd-timedated
@{p_systemd_timesyncd}=systemd-timesyncd
@{p_systemd_userdbd}=systemd-userdbd
@{p_upowerd}=upowerd
@{p_xdg_desktop_portal}=xdg-desktop-portal

# Profiles Patterns
# Fit to an action that can be handled by multiple profiles depending on the software installed and the distribution

# Notification
@{pp_notification}={plasmashell,gjs}
@{pp_app_indicator}={plasmashell,gnome-shell}
@{pp_dbusmenu}={plasmashell,nautilus}

# vim:syntax=apparmor
