Add nvtop.
This commit is contained in:
parent
ea366754d7
commit
2cdd954613
1 changed files with 29 additions and 0 deletions
29
apparmor.d/profiles-m-r/nvtop
Normal file
29
apparmor.d/profiles-m-r/nvtop
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/nvtop
|
||||||
|
profile nvtop @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/opencl-nvidia>
|
||||||
|
|
||||||
|
ptrace (read),
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/usr/share/terminfo/x/xterm-256color r,
|
||||||
|
|
||||||
|
@{PROC}/@{pids}/cmdline r,
|
||||||
|
@{PROC}/@{pids}/stat r,
|
||||||
|
@{PROC}/driver/nvidia/capabilities/mig/{config,monitor} r,
|
||||||
|
|
||||||
|
/dev/nvidia-caps/{,nvidia-cap[0-9]*} rw,
|
||||||
|
|
||||||
|
include if exists <local/nvtop>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue