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

# Read write access to journalctl binary log files

  abi <abi/4.0>,

  include <abstractions/journal-read>

  @{log}/ w,
  @{log}/journal/ w,
  @{log}/journal/@{hex32}/ w,
  @{log}/journal/@{hex32}/system.journal* w,
  @{log}/journal/@{hex32}/system@@{hex}.journal* w,
  @{log}/journal/@{hex32}/user-@{hex}.journal* w,

  include if exists <abstractions/journal-write.d>

# vim:syntax=apparmor
