# 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}/udev/bcache-export-cached
@{att} = ""
profile udev-bcache-export-cached /{,usr/}lib{,exec,32,64}/udev/bcache-export-cached flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/disks-read>

  @{exec_path} mr,

  @{sh_path}                rix,
  @{bin}/{m,g,}awk          rix,
  @{sbin}/bcache-super-show rix,

  include if exists <local/udev-bcache-export-cached>
}

# vim:syntax=apparmor
