38 lines
1,009 B
Text
38 lines
1,009 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}/{,e}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,
|
|
|
|
@{efi}/amd-ucode.img r,
|
|
@{efi}/intel-ucode.img r,
|
|
@{efi}/vmlinuz* r,
|
|
|
|
owner @{tmp}/tmp.@{rand10} rw,
|
|
|
|
include if exists <local/needrestart-vmlinuz-get-version>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|