diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-04 13:30:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-04 13:30:16 +0900 |
| commit | f7bd6a5a4172dec89a1b86100602163b61b8ff86 (patch) | |
| tree | 2bd7f5222be741a53199333361d517d982782bb1 /test/sandbox/seccomp.nix | |
| parent | ea853e21d9adc86ad3ce0c9f0c752d987d721abd (diff) | |
test/sandbox: check seccomp outcome
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/seccomp.nix')
| -rw-r--r-- | test/sandbox/seccomp.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/sandbox/seccomp.nix b/test/sandbox/seccomp.nix new file mode 100644 index 00000000..3cf9b582 --- /dev/null +++ b/test/sandbox/seccomp.nix @@ -0,0 +1,27 @@ +{ + writeText, + buildGoModule, + + version, +}: +let + mainFile = writeText "main.go" '' + package main + + import "git.gensokyo.uk/security/fortify/test/sandbox" + + func main() { sandbox.MustAssertSeccomp() } + ''; +in +buildGoModule { + pname = "check-seccomp"; + inherit version; + + src = ../.; + vendorHash = null; + + preBuild = '' + go mod init git.gensokyo.uk/security/fortify/test >& /dev/null + cp ${mainFile} main.go + ''; +} |
