# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/3.0>,

include <tunables/global>

@{exec_path} = @{bin}/lvmpolld
profile lvmpolld @{exec_path} {
  include <abstractions/base>
  include <abstractions/consoles>
  include <abstractions/nameservice-strict>

  @{exec_path} rm,
  @{bin}/grep rix,
  @{bin}/umount rPx,

  @{run}/lvmpolld.pid rwk,

  include if exists <local/lvmpolld>
}

# vim:syntax=apparmor
