2021-04-01 17:17:47 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
2021-04-01 17:17:47 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2023-07-09 15:34:42 +02:00
|
|
|
@{exec_path} = @{bin}/lscpu
|
2020-09-12 17:19:23 +02:00
|
|
|
profile lscpu @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
2022-06-01 19:50:05 +02:00
|
|
|
include <abstractions/consoles>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
@{sys}/devices/system/cpu/{,**} r,
|
|
|
|
@{sys}/devices/system/node/ r,
|
2023-08-18 18:09:53 +02:00
|
|
|
@{sys}/devices/system/node/node@{int}/cpumap r,
|
2023-09-29 20:25:30 +02:00
|
|
|
@{sys}/firmware/dmi/tables/DMI r,
|
|
|
|
@{sys}/kernel/cpu_byteorder r,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2023-09-29 20:25:30 +02:00
|
|
|
@{PROC}/ r,
|
|
|
|
@{PROC}/bus/pci/devices r,
|
|
|
|
@{PROC}/sys/kernel/osrelease r,
|
2023-07-27 13:23:04 +02:00
|
|
|
|
2023-08-18 18:09:53 +02:00
|
|
|
/dev/tty@{int} rw,
|
2023-09-29 20:25:30 +02:00
|
|
|
|
|
|
|
deny network unix stream,
|
2023-07-27 13:23:04 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/lscpu>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|