mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
feat(profile): add gpu-manager.
This commit is contained in:
parent
aae5c50914
commit
50b720a8b9
33
apparmor.d/profiles-g-l/gpu-manager
Normal file
33
apparmor.d/profiles-g-l/gpu-manager
Normal 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>
|
||||
}
|
Loading…
Reference in New Issue
Block a user