Commit df2e76ae authored by Keiichi Watanabe's avatar Keiichi Watanabe Committed by Commit Bot

Allow user 'crosvm' to use libvda D-Bus service.

Added a new rule to allow the user 'crosvm' to use libvda D-Bus service
because crosvm is run as 'crosvm' when it's started by vm_concierge.

Bug: b:142864350
Test: Play a video on VM with virtio-vdec
Signed-off-by: default avatarKeiichi Watanabe <keiichiw@chromium.org>
Change-Id: I35562356b9a475fc3f72ec7de743cfe636b4a6e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1883451Reviewed-by: default avatarMattias Nissler <mnissler@chromium.org>
Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712483}
parent 4fac3520
...@@ -13,9 +13,20 @@ ...@@ -13,9 +13,20 @@
</policy> </policy>
<!-- <!--
libvda (via crosvm, running as root) uses this service to ask Chrome to LibvdaService is used by libvda (go/libvda), which is a shared library
provide a mojo connection FD. providing APIs corresponding to mojom::VideoDecodeAccelerator defined in
video_decode_accelerator.mojom.
libvda uses this service to ask Chrome to provide a mojo connection FD.
libvda is linked to crosvm and used from its virtio video decoder device.
Since crosvm is run as 'crosvm' by vm_concierge or 'root' from the command
line, we allow these users.
--> -->
<policy user="crosvm">
<allow send_destination="org.chromium.LibvdaService"
send_interface="org.chromium.LibvdaService"/>
</policy>
<policy user="root"> <policy user="root">
<allow send_destination="org.chromium.LibvdaService" <allow send_destination="org.chromium.LibvdaService"
send_interface="org.chromium.LibvdaService"/> send_interface="org.chromium.LibvdaService"/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment