mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
Add scrcpy.
This commit is contained in:
parent
8d5e0fc37c
commit
e437fe3a57
31
apparmor.d/profiles-s-z/scrcpy
Normal file
31
apparmor.d/profiles-s-z/scrcpy
Normal 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>
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user