Repository navigation
Commit b172e3d
committed
smoke: gsudo rides the vm disk's own convenience account, and the check grep reads to EOF
Two lap mechanics bugs the local laps caught, both in lanes the
Oct 6 hardening commit touched but never got to run green.
The hardening read: my first fix reached for a smoketest ssh lane
on a false premise — the declared [user] never exists on a disk
kuma vm builds. The vm installer writes its own /var/lib/kuma/user
answer (the kuma convenience account, name and password kuma by
design), and the converger's machine-state-wins rule unsets the
baked declaration before sourcing it. Three laps of Permission
denied with the hash verifiably baked were the shadowing making
itself known. The lane is now no second lane at all: the key that
got us in, plus sudo -S with the account's own password on stdin.
gsudo keeps its stderr in a file beside the lap's dirs rather than
inside one — the cleanup rm -rf's vm-smoke/$name on the way out,
pass or fail, and evidence written there dies with the lap.
The update --check grep: the check's answer names composed in its
first line, then lists every moved package — hundreds when the
Fedora backlog is deep. grep -q stops at the match, closes the
pipe, kuma's next write dies with EPIPE, and pipefail fails the
pipeline though the word was there. Captured, then grepped: a
capture reads to EOF, nothing downstream can close early.
Local lap: --boot niri, all good — hardening sysctls at the floor,
kargs applied, the declared user yields to the installer's answer.1 parent 709d62f commit b172e3d
1 file changed
Lines changed: 32 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
492 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
493 | 501 | | |
494 | 502 | | |
495 | 503 | | |
| |||
3257 | 3265 | | |
3258 | 3266 | | |
3259 | 3267 | | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
3260 | 3284 | | |
3261 | 3285 | | |
3262 | 3286 | | |
| |||
3603 | 3627 | | |
3604 | 3628 | | |
3605 | 3629 | | |
3606 | | - | |
3607 | | - | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
| 3635 | + | |
3608 | 3636 | | |
3609 | 3637 | | |
3610 | 3638 | | |
| |||
0 commit comments