mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-27 08:29:41 -05:00
3faa523820
Introduces support for USB connected devices such as Bluetooth and camera, microphone as well as their integrated versions.
40 lines
2.4 KiB
Plaintext
40 lines
2.4 KiB
Plaintext
# SPDX-FileCopyrightText: 2023 Yukikoo neowutran <https://neowutran.ovh>
|
|
# SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#
|
|
# Credits: https://forum.qubes-os.org/t/audio-qube/20685
|
|
|
|
## Do not modify this file, create a new policy with with a lower number in the
|
|
## file name instead. For example `30-user.policy`.
|
|
|
|
## Literal name 'sys-usb' in case user has not installed from our formula.
|
|
admin.vm.device.usb.Available * disp-{{ sls_path }} sys-usb allow target=dom0
|
|
admin.vm.device.usb.Available * disp-{{ sls_path }} @tag:usbvm allow target=dom0
|
|
admin.vm.device.mic.Available * disp-{{ sls_path }} @adminvm allow target=dom0
|
|
|
|
admin.Events * disp-{{ sls_path }} disp-{{ sls_path }} allow target=dom0
|
|
admin.Events * disp-{{ sls_path }} @adminvm allow target=dom0
|
|
admin.Events * disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
|
|
admin.vm.CurrentState * disp-{{ sls_path }} disp-{{ sls_path }} allow target=dom0
|
|
admin.vm.CurrentState * disp-{{ sls_path }} @adminvm allow target=dom0
|
|
admin.vm.CurrentState * disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
|
|
admin.vm.List * disp-{{ sls_path }} disp-{{ sls_path }} allow target=dom0
|
|
admin.vm.List * disp-{{ sls_path }} @adminvm allow target=dom0
|
|
admin.vm.List * disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
|
|
admin.vm.property.Get +audiovm disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
admin.vm.property.Get +xid disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
admin.vm.property.Get +stubdom_xid disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
|
|
admin.vm.feature.CheckWithTemplate +audio disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
admin.vm.feature.CheckWithTemplate +audio-model disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
admin.vm.feature.CheckWithTemplate +supported-service.pipewire disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
admin.vm.feature.CheckWithTemplate +audio-low-latency disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
|
|
admin.vm.property.GetAll * disp-{{ sls_path }} disp-{{ sls_path }} allow target=dom0
|
|
admin.vm.property.GetAll * disp-{{ sls_path }} @tag:audiovm-disp-{{ sls_path }} allow target=dom0
|
|
## vim:ft=qrexecpolicy
|