summaryrefslogtreecommitdiff
path: root/tests/e2e/e2e_test.go
diff options
context:
space:
mode:
authorJames O'Doherty <james@theodohertyfamily.com>2026-05-22 10:46:02 -0400
committerJames O'Doherty <james@theodohertyfamily.com>2026-05-22 10:46:02 -0400
commit9131b0004e7c640cc028179e1d049a4c62210d94 (patch)
tree7efb5612b61240105851cb5d8ac8f05263644db4 /tests/e2e/e2e_test.go
parent401683a6b11e5a7810c949147a12f2c4bbfba48a (diff)
Security hardening: prevent shell injection and null-byte crashes, implement 8-bit clean argument fuzzing and portable E2E binary discovery
Diffstat (limited to 'tests/e2e/e2e_test.go')
-rw-r--r--tests/e2e/e2e_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go
index 4339a8b..fb763b3 100644
--- a/tests/e2e/e2e_test.go
+++ b/tests/e2e/e2e_test.go
@@ -20,10 +20,10 @@ func TestNetworkIsolation(t *testing.T) {
t.Fatalf("Failed to get cwd: %v", err)
}
root := filepath.Join(cwd, "..", "..")
-
+
// 2. Build the project to ensure we have a fresh binary
buildCmd := exec.Command("bash", "-c", fmt.Sprintf(
- "cd %s && gcc -static -O2 internal/namespace/launcher_src/launcher.c -o internal/namespace/launcher.bin && export CGO_ENABLED=1 && go build -o wg-wrap cmd/wg-wrap/main.go",
+ "cd %s && gcc -static -O2 internal/namespace/launcher_src/launcher.c -o internal/namespace/launcher.bin && export CGO_ENABLED=1 && go build -o wg-wrap cmd/wg-wrap/main.go",
root))
if err := buildCmd.Run(); err != nil {
t.Fatalf("Failed to build project for E2E test: %v", err)
@@ -43,7 +43,7 @@ func TestNetworkIsolation(t *testing.T) {
}
// Cleanup
- os.Remove(binaryPath)
+ _ = os.Remove(binaryPath)
}
func TestDNSLeakage(t *testing.T) {