feat(profile): add gpu-manager.

This commit is contained in:
Alexandre Pujol 2024-04-03 21:56:33 +01:00
parent aae5c50914
commit 50b720a8b9
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,33 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/gpu-manager
profile gpu-manager @{exec_path} {
include <abstractions/base>
include <abstractions/graphics>
capability sys_admin,
capability syslog,
@{exec_path} mr,
@{sh_path} rix,
@{bin}/grep rix,
/etc/modprobe.d/{,**} r,
/usr/lib/modprobe.d/{,**} r,
/var/lib/ubuntu-drivers-common/* rw,
/var/log/gpu-manager.log w,
@{PROC}/modules r,
@{PROC}/cmdline r,
include if exists <local/gpu-manager>
}