internal/app/spcontainer: resolve path through dispatcher
Some checks failed
Test / Create distribution (push) Successful in 36s
Test / Sandbox (push) Failing after 1m6s
Test / Hakurei (push) Failing after 1m33s
Test / Hpkg (push) Failing after 1m55s
Test / Sandbox (race detector) (push) Failing after 2m7s
Test / Hakurei (race detector) (push) Failing after 3m33s
Test / Flake checks (push) Has been skipped

This prevents state from os tainting the test data.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2025-10-11 20:15:53 +09:00
parent 037144b06e
commit 3f16a20992
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -139,7 +139,12 @@ func (s *spFilesystemOp) toSystem(state *outcomeStateSys) error {
varRunNscd, varRunNscd,
} }
_, systemBusAddr := dbus.Address() // dbus.Address does not go through syscallDispatcher
systemBusAddr := dbus.FallbackSystemBusAddress
if addr, ok := state.k.lookupEnv(dbus.SystemBusAddress); ok {
systemBusAddr = addr
}
if entries, err := dbus.Parse([]byte(systemBusAddr)); err != nil { if entries, err := dbus.Parse([]byte(systemBusAddr)); err != nil {
return &hst.AppError{Step: "parse dbus address", Err: err} return &hst.AppError{Step: "parse dbus address", Err: err}
} else { } else {