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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{sbin}/lvmpolld
@{att} = ""
profile lvmpolld /{,usr/}{,s}bin/lvmpolld flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/consoles>
  include <abstractions/nameservice-strict>

  @{exec_path} rm,
  @{bin}/{,e}grep rix,
  @{bin}/umount rpx,

  @{run}/lvmpolld.pid rwk,

  include if exists <local/lvmpolld>
}

# vim:syntax=apparmor
