# 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} = @{bin}/ischroot
@{att} = /att/ischroot/
profile ischroot /{,usr/}bin/ischroot  flags=(attach_disconnected,attach_disconnected.path=@{att},complain) {
  include <abstractions/attached/base>
  include <abstractions/attached/consoles>

  @{exec_path} mr,

  /var/lib/update-notifier/tmp.@{rand10} w,

  @{PROC}/@{pid}/mountinfo r,

  include if exists <local/ischroot>
}

# vim:syntax=apparmor
