-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --determinate container and VM tests (#1103)
* Add --determinate container tests * Add --determinate VM tests * fixup: actually show journalctl logs when something fails * fixup: trace logging container and VM tests This makes it easier to see what's going on, and aids debugging failures. * fixup: add Determinate SELinux policy * Skip --determinate in RHEL v7 VM tests * Fixup fmt --------- Co-authored-by: Graham Christensen <[email protected]>
- Loading branch information
Showing
10 changed files
with
136 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM default | ||
COPY nix-installer /nix-installer | ||
RUN chmod +x /nix-installer | ||
COPY binary-tarball /binary-tarball | ||
RUN mv /binary-tarball/nix-*.tar.xz nix.tar.xz | ||
RUN /nix-installer/bin/nix-installer install linux --logger pretty --log-directive nix_installer=trace --nix-package-url file:///nix.tar.xz --init none --extra-conf "sandbox = false" --determinate --no-confirm -vvv | ||
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin" | ||
RUN nix-build --no-substitute -E 'derivation { name = "foo"; system = "x86_64-linux"; builder = "/bin/sh"; args = ["-c" "echo foobar > $out"]; }' | ||
RUN /nix/nix-installer uninstall --no-confirm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i bash ../../../../shell.nix | ||
#!/usr/bin/env bash | ||
|
||
checkmodule -M -m -c 5 -o nix.mod nix.te | ||
semodule_package -o nix.pp -m nix.mod -f nix.fc | ||
semodule_package -o nix.pp -m nix.mod -f nix.fc | ||
|
||
checkmodule -M -m -c 5 -o nix.mod nix.te | ||
semodule_package -o determinate-nix.pp -m nix.mod -f determinate-nix.fc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/nix/store/[^/]+/s?bin(/.*)? system_u:object_r:bin_t:s0 | ||
/nix/store/[^/]+/lib/systemd/system(/.*)? system_u:object_r:systemd_unit_file_t:s0 | ||
/nix/store/[^/]+/lib(/.*)? system_u:object_r:lib_t:s0 | ||
/nix/store/[^/]+/man(/.*)? system_u:object_r:man_t:s0 | ||
/nix/store/[^/]+/etc(/.*)? system_u:object_r:etc_t:s0 | ||
/nix/store/[^/]+/share(/.*)? system_u:object_r:usr_t:s0 | ||
/nix/var/nix/daemon-socket(/.*)? system_u:object_r:var_run_t:s0 | ||
/nix/var/nix/profiles(/per-user/[^/]+)?/[^/]+ system_u:object_r:usr_t:s0 | ||
|
||
/nix/determinate/determinate-nixd system_u:object_r:bin_t:s0 | ||
/nix/var/determinate/determinate-nixd.socket system_u:object_r:var_run_t:s0 | ||
/nix/var/determinate/intake.pipe system_u:object_r:var_run_t:s0 | ||
/nix/var/determinate/post-build-hook.sh system_u:object_r:bin_t:s0 | ||
/nix/var/determinate/netrc system_u:object_r:etc_t:s0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters