jail: Also bind mount libdrm dir.

Fix "/usr/share/libdrm/amdgpu.ids: No such file or directory"
warnings on AMD platforms.

BUG=b:331655015
TEST=`crosvm run --gpu 3d vmlinux`

Change-Id: Idba7c65de2f9d7a6b215284aa339919be756ba83
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5401918
Reviewed-by: Ryan Neph <ryanneph@google.com>
Commit-Queue: Lepton Wu <lepton@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Lepton Wu 2024-03-27 16:09:42 -07:00 committed by crosvm LUCI
parent 4c5471a3ad
commit 21f8e5332f

View file

@ -382,6 +382,7 @@ pub fn create_gpu_minijail(
"/lib64", "/lib64",
"/usr/share/drirc.d", "/usr/share/drirc.d",
"/usr/share/glvnd", "/usr/share/glvnd",
"/usr/share/libdrm",
"/usr/share/vulkan", "/usr/share/vulkan",
], ],
)?; )?;