patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 331d9a57e8d99eb8d6f7b33031cd130b410a6157 704 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
 
#!/bin/execlineb -WP
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2024-2025 Alyssa Ross <hi@alyssa.is>

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

if { udevadm wait /dev/null }

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

export LISTEN_FDS 1
getpid LISTEN_PID

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

debug log:

solving 331d9a57e8d99eb8d6f7b33031cd130b410a6157 ...
found 331d9a57e8d99eb8d6f7b33031cd130b410a6157 in https://spectrum-os.org/git/spectrum

(*) 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).