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

# The devel feature allows the application to access certain syscalls such as
# ptrace(), and perf_event_open().

  abi <abi/4.0>,

  ptrace read peer=flatpak//bwrap,
  ptrace trace peer=@{profile_name},

  # List processes in /proc
  @{PROC}/ r,

  # Uptime
  @{PROC}/uptime r,
  @{PROC}/loadavg r,

  # Pressure Stall Information interface
  @{PROC}/pressure/cpu r,
  @{PROC}/pressure/io r,
  @{PROC}/pressure/memory r,

  include if exists <abstractions/flatpak/features/devel.d>

# vim:syntax=apparmor
