apparmor.d/apparmor.d/profiles-m-r/needrestart-vmlinuz-get-version
2025-05-26 00:47:46 +02:00

37 lines
981 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/needrestart/vmlinuz-get-version
profile needrestart-vmlinuz-get-version @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
@{sh_path} rix,
@{bin}/bzip2 rix,
@{bin}/grep rix,
@{bin}/gunzip rix,
@{bin}/gzip rix,
@{bin}/lzop rix,
@{bin}/mktemp rix,
@{bin}/rm rix,
@{bin}/tail rix,
@{bin}/tr rix,
@{bin}/which{,.debianutils} rPx,
@{bin}/xz rix,
/boot/intel-ucode.img r,
/boot/vmlinuz* r,
owner @{tmp}/tmp.@{rand10} rw,
include if exists <local/needrestart-vmlinuz-get-version>
}
# vim:syntax=apparmor