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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{lib}/runit-helper/runit-helper
@{att} = ""
profile runit-helper /{,usr/}lib{,exec,32,64}/runit-helper/runit-helper flags=(complain) {
  include <abstractions/base-strict>

  @{exec_path} mr,

  @{bin}/mkdir rix,

  @{run}/runit/ rw,
  @{run}/runit/supervise/ w,

  include if exists <local/runit-helper>
}

# vim:syntax=apparmor
