mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
feat(profiles): add switcheroo-control.
This commit is contained in:
parent
6058ef7439
commit
df8cb3fe91
1 changed files with 27 additions and 0 deletions
27
apparmor.d/profiles-s-z/switcheroo-control
Normal file
27
apparmor.d/profiles-s-z/switcheroo-control
Normal file
|
@ -0,0 +1,27 @@
|
|||
# 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} = @{libexec}/switcheroo-control
|
||||
profile switcheroo-control @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
capability sys_nice,
|
||||
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{run}/udev/data/+drm:* r,
|
||||
|
||||
@{sys}/bus/ r,
|
||||
@{sys}/class/ r,
|
||||
@{sys}/class/drm/ r,
|
||||
@{sys}/devices/pci[0-9]*/**/drm/**/uevent r,
|
||||
|
||||
include if exists <local/switcheroo-control>
|
||||
}
|
Loading…
Reference in a new issue