diff --git a/apparmor.d/profiles-s-z/scrcpy b/apparmor.d/profiles-s-z/scrcpy new file mode 100644 index 000000000..32407c37d --- /dev/null +++ b/apparmor.d/profiles-s-z/scrcpy @@ -0,0 +1,31 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/scrcpy +profile scrcpy @{exec_path} { + include + include + include + include + + 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 +} \ No newline at end of file diff --git a/dists/flags/main.flags b/dists/flags/main.flags index 253b34583..ebaf0f8d6 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -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