patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 89676ac91d3e22db7726fc869a065137b031d0be 724 bytes (raw)
name: host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/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
 
#!/bin/execlineb -WS1
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2024-2025 Alyssa Ross <hi@alyssa.is>

cgroup-setup -- $1
importas -i VM VM

if {
  redirfd -w 1 data/dbus.conf
  sed "s/@XDP_SPECTRUM_USER@/xdp-spectrum-${VM}/g" /etc/dbus-portal.conf.in
}

s6-ipcserver-socketbinder -B /run/portal-bus/${VM}

fdmove -c 3 0
redirfd -r 0 /dev/null

s6-envuidgid fs
s6-applyuidgid -Uzu 0
getcwd -E dir
nsenter --preserve-credentials -S0
  --mount=/run/vm/by-id/${VM}/ns/mnt
  --user=/run/vm/by-id/${VM}/ns/user

unshare --cgroup --ipc --net --uts

export LISTEN_FDS 1
getpid LISTEN_PID

if { udevadm wait /dev/null }

dbus-daemon
  --config-file ${dir}/data/dbus.conf
  --print-address 4
  --address systemd:

debug log:

solving 89676ac91d3e22db7726fc869a065137b031d0be ...
found 89676ac91d3e22db7726fc869a065137b031d0be in https://inbox.spectrum-os.org/spectrum-devel/20260620-cgroups-v2-1-ccae224b6c85@gmail.com/
found f0507dc92aadf25c092f0719eb767542ac0c4451 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100755 f0507dc92aadf25c092f0719eb767542ac0c4451	host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/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/dbus/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/run
index f0507dc92aadf25c092f0719eb767542ac0c4451..89676ac91d3e22db7726fc869a065137b031d0be 100755

Checking patch host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/run...
Applied patch host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/run cleanly.

index at:
100755 89676ac91d3e22db7726fc869a065137b031d0be	host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/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).