blob ad705da8460a86667b47d40e61fee167d240a9c6 1054 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 -WS1
# 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 -- $1
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 ad705da8460a86667b47d40e61fee167d240a9c6 ...
found ad705da8460a86667b47d40e61fee167d240a9c6 in https://inbox.spectrum-os.org/spectrum-devel/20260620-cgroups-v2-1-ccae224b6c85@gmail.com/ ||
https://inbox.spectrum-os.org/spectrum-devel/20260620-cgroups-v1-1-0e5abf35101b@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/20260620-cgroups-v2-1-ccae224b6c85@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..ad705da8460a86667b47d40e61fee167d240a9c6 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/20260620-cgroups-v1-1-0e5abf35101b@gmail.com/ for ad705da8460a86667b47d40e61fee167d240a9c6
index at:
100755 ad705da8460a86667b47d40e61fee167d240a9c6 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).