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

abi <abi/4.0>,

include <tunables/global>

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

  @{exec_path} mr,

  @{sh_path} rix,
  @{sbin}/tlp rpux,

  include if exists <local/systemd-sleep-tlp>
}

# vim:syntax=apparmor
