| Age | Commit message (Collapse) | Author |
|
This is simpler and more reliable than verifying security context via
a grim error message.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Rosa OS does not use the common /usr prefix.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
In the Rosa OS environment, 5 ends up left open when the file itself is
removed. This causes EINVAL. This change replaces the fd number instead.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The infinity argument is not available in lksh or toybox.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The rootfs (initial ramfs) cannot be pivot_root()ed. This change works
around that limitation by making / a bind mount of the rootfs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This does not require additional state, so mount it early.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is only used by the test suite. Autoroot is generally never used.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is available on Rosa OS via the compatibility symlink.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This removes printk noise after the system is unable to continue its
boot process, so the error message does not get scrolled away.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This keeps musl happy for now. Currently, only dbus daemon and pipewire
wants this, and both pieces of software will eventually be replaced,
anyway.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This increases output readability in the test suite.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This message is different between the musl and glibc implementations.
This change assumes the non-Rosa test suite uses glibc, since it is only
ran on the Gitea actions runner.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This uses the correct prefix when compiled for Rosa OS.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This file is generated by the operating system. Pointing it to /system
requires ugly tricks to bind mount over it.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Legacy software like the X server hardcodes a FHS path to the shell.
Since Rosa OS does not mount over /, this has to be created during boot.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
It does not make sense to dispatch trivial errors in user-facing builds.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The Rosa OS target triple does not work outside of Rosa OS.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Useful during testing and debugging to leave / writable.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This prevents the kernel from attempting to write to the device, even
though squashfs itself is read-only.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Useful for sharing a directory during integration testing.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This directory is not used by Rosa OS, but may be useful during testing.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This optionally halts the boot process to run the specified program.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The hardcoded name is not correct for externally registered files.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
QEMU does not support most things worth testing, and supported tests
that invoke a binary still requires binfmt to work correctly.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This replaces SyscallError with PathError when pathnames are involved.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The ppc64le target is currently cross-only due to the lack of test
constants. A future change may downgrade riscv64 to the same status.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Not all packages support cross-compilation. This removes cross packages
from artifacts kept during cleanup for now.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This removes the unnecessary azalea AST information.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The cross-compiled sysroot can now be provided by internal/rosa.
Unfortunately pkg-config still had to be configured externally to avoid
making any assumptions about the prefix.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This successfully cross-compiles the toolchain. More work is needed to
support cross-compilation on all native helpers and existing packages.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Simultaneous commits or reverts can race if they have overlapping
targets. This big lock synchronises entry into the Commit and Revert
critical sections across all cmd/hakurei processes.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This retries when seeing files opened by the dynamic linker. This will
eventually be replaced by a statically linked anchor program that never
opens any files on its own.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This avoids swallowing error messages from failed container startups.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is much more precise than just simply checking the exit code.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This ensures that cmd/hakurei has finished cleanup and terminated before
validating the outcome of that cleanup.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This was inadvertently placed inside the setscheduler loop due to
miscounting indentations.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This avoids breaking ownership of lock files.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This implements retries of individual test cases and enables it for
pipewire and X tests. PipeWire and X server are quite flaky, and that
cannot be fixed by anything cmd/hakurei does.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These were pretty difficult to do properly in the nixos-based test
suite.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This runs much faster than the NixOS test suite, and is much more
precise. This also uncovered a recent severe pipewire regression.
This change removes all remaining deprecated nix code.
Closes #22.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This allows testing insecure configurations. This change also improves
error reporting and fixes non-startup-notification behaviour.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Used by some tests to inspect cmd/hakurei internals.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is only really used by the sandbox test suite for seccomp
validation. Make it optional here to simplify other use cases.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These are too noisy and are not useful outside of debugging the test
suite itself, so silence them by default.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These helpers are useful across multiple test suites.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is a useful value to customise, primarily useful for test suites
but can also generally improve exit latency for stubborn applications.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This remains unsupported, but is useful during testing, or when
packaging for some particularly stubborn distros.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The Gitea web interface is no longer publicly accessible, so it no
longer matters that this code style does not render well on Gitea.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|