feat: build wahrwelt A/D toolkit

This commit is contained in:
TakuyaYagam1 committed 2026-10-14 11:30:41 +03:00
1 parent 303438d206
commit 653924d8c6
564 files changed
+36310 -49998

No files matched your search

@@ -0,0 +1,17 @@
//go:build linux
package client
import (
"testing"
"github.com/stretchr/testify/require"
"golang.org/x/sys/unix"
)
func TestHardenProcessDisablesDumpability(t *testing.T) {
require.NoError(t, HardenProcess())
dumpable, err := unix.PrctlRetInt(unix.PR_GET_DUMPABLE, 0, 0, 0, 0)
require.NoError(t, err)
require.Zero(t, dumpable)
}