apparmor.d/apparmor.d/profiles-a-f/cpuid
Alexandre Pujol 66455a9251
feat(profile): improve support for some profiles.
Most of the rules have come from the integration tests.
2024-11-12 22:18:11 +00:00

26 lines
512 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/cpuid
profile cpuid @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
capability mknod,
@{exec_path} mr,
/dev/cpu/@{int}/cpuid r,
owner @{tmp}/cpuid* rw,
include if exists <local/cpuid>
}
# vim:syntax=apparmor