apparmor.d/apparmor.d/profiles-m-r/needrestart-hook
2025-05-25 23:47:44 +02:00

25 lines
515 B
Text

# 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} = @{etc_ro}/needrestart/hook.d/*
profile needrestart-hook @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/perl>
@{exec_path} mr,
@{sh_path} rix,
@{bin}/dpkg-query px,
/tmp/ r,
include if exists <local/needrestart-hook>
}
# vim:syntax=apparmor