apparmor.d/apparmor.d/profiles-s-z/scrcpy
2022-05-07 11:42:18 +01:00

35 lines
787 B
Plaintext

# 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} = /{usr/,}bin/scrcpy
profile scrcpy @{exec_path} {
include <abstractions/base>
include <abstractions/dri-common>
include <abstractions/dri-enumerate>
include <abstractions/mesa>
include <abstractions/opencl>
include <abstractions/vulkan>
network inet stream,
network inet6 stream,
signal (send) set=(kill) peer=adb,
@{exec_path} mr,
/{usr/,}bin/adb rPx,
/usr/share/scrcpy/{,*} r,
/usr/share/icons/**/scrcpy.png r,
/var/lib/dbus/machine-id r,
owner @{user_config_dirs}/ibus/bus/{,[0-9a-f]*-unix-wayland-[0-9]} r,
include if exists <local/scrcpy>
}