blob a8ec06122e47605e7230c864ef22ef84c7de54b2 1069 bytes (raw)
name: host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| | #!/bin/execlineb -WP
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2025 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>
cgroup-setup --leaf vhost-user-gpu
s6-ipcserver-socketbinder -a 0700 -b 1 env/crosvm.sock
multisubstitute {
importas -Siu VM
importas -Si WAYLAND_DISPLAY
}
if { chown vmm-${VM} env/crosvm.sock }
s6-envuidgid gpu-${VM}
s6-applyuidgid -UzG 15 # wayland
s6-ipcserverd -1c 1
bwrap
--unshare-all
# --unshare-all only implies --unshare-user-try.
# Make this more than a "try".
--unshare-user
--bind $WAYLAND_DISPLAY $WAYLAND_DISPLAY
--ro-bind /usr /usr
--ro-bind /lib /lib
--tmpfs /tmp
--dev /dev
--tmpfs /dev/shm
--ro-bind /nix /nix
--disable-userns
--proc /proc
--ro-bind /proc/sys /proc/sys
--tmpfs /proc/fs
--remount-ro /proc/fs
--tmpfs /proc/irq
--remount-ro /proc/irq
--ro-bind /dev/null /proc/kallsyms
--
crosvm --no-syslog device gpu
--fd 0
--wayland-sock $WAYLAND_DISPLAY
--params "{\"context-types\":\"cross-domain\"}"
|
debug log:
solving a8ec06122e47605e7230c864ef22ef84c7de54b2 ...
found a8ec06122e47605e7230c864ef22ef84c7de54b2 in https://inbox.spectrum-os.org/spectrum-devel/20260805-cgroups-v6-17-086c0f00f55f@gmail.com/ ||
https://inbox.spectrum-os.org/spectrum-devel/20260731-cgroups-v5-17-b325bac9d34f@gmail.com/
found c3bfafe02ec6d2ee418fe56b033bbc4c7a73b186 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100755 c3bfafe02ec6d2ee418fe56b033bbc4c7a73b186 host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20260805-cgroups-v6-17-086c0f00f55f@gmail.com/
diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run
index c3bfafe02ec6d2ee418fe56b033bbc4c7a73b186..a8ec06122e47605e7230c864ef22ef84c7de54b2 100755
Checking patch host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run...
Applied patch host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run cleanly.
skipping https://inbox.spectrum-os.org/spectrum-devel/20260731-cgroups-v5-17-b325bac9d34f@gmail.com/ for a8ec06122e47605e7230c864ef22ef84c7de54b2
index at:
100755 a8ec06122e47605e7230c864ef22ef84c7de54b2 host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).