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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/du
@{att} = ""
profile du /{,usr/}bin/du {
  include <abstractions/base-strict>
  include <abstractions/consoles>

  @{exec_path} mr,

  #aa:lint ignore=too-wide
  # As a directory tree analyzer it needs full access to the filesystem
  / r,
  /** r,

  include if exists <local/du>
}

# vim:syntax=apparmor
