diff --git a/apparmor.d/profiles-m-r/nvtop b/apparmor.d/profiles-m-r/nvtop new file mode 100644 index 00000000..dafe4c86 --- /dev/null +++ b/apparmor.d/profiles-m-r/nvtop @@ -0,0 +1,29 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/nvtop +profile nvtop @{exec_path} { + include + include + include + include + + 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 +} \ No newline at end of file