apparmor.d/apparmor.d/profiles-m-r/rdmsr
2021-09-15 16:55:27 +01:00

22 lines
414 B
Plaintext

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2020-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/rdmsr
profile rdmsr @{exec_path} {
include <abstractions/base>
# To access /dev/cpu/*/msr .
capability sys_rawio,
@{exec_path} mr,
owner /dev/cpu/[0-9]*/msr r,
include if exists <local/rdmsr>
}