From df8cb3fe91614317afe2621bc84ddb28062e59bb Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 21 May 2022 17:17:14 +0100 Subject: [PATCH] feat(profiles): add switcheroo-control. --- apparmor.d/profiles-s-z/switcheroo-control | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apparmor.d/profiles-s-z/switcheroo-control diff --git a/apparmor.d/profiles-s-z/switcheroo-control b/apparmor.d/profiles-s-z/switcheroo-control new file mode 100644 index 00000000..6830ff9b --- /dev/null +++ b/apparmor.d/profiles-s-z/switcheroo-control @@ -0,0 +1,27 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{libexec}/switcheroo-control +profile switcheroo-control @{exec_path} { + include + + 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 +} \ No newline at end of file