Add scrcpy.

This commit is contained in:
Alexandre Pujol 2022-03-06 14:02:20 +00:00
parent 8d5e0fc37c
commit e437fe3a57
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# 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>
network inet stream,
network inet6 stream,
@{exec_path} mr,
/{usr/,}bin/adb rix,
/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>
}

View File

@ -92,6 +92,7 @@ resolvconf complain
run-parts complain
runuser complain
s3fs complain
scrcpy complain
slirp4netns attach_disconnected,complain
spice-client-glib-usb-acl-helper complain
ssh complain