feat: build wahrwelt A/D toolkit
This commit is contained in:
1 parent
303438d206
commit
653924d8c6
564 files changed
+36310
-49998
No files matched your search
@@ -0,0 +1,11 @@
|
||||
//go:build linux
|
||||
|
||||
package client
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
// HardenProcess не дает заданиям с тем же UID читать память и окружение
|
||||
// worker через /proc, сохраняя возможность запускать дочерние процессы.
|
||||
func HardenProcess() error {
|
||||
return unix.Prctl(unix.PR_SET_DUMPABLE, 0, 0, 0, 0)
|
||||
}
|
||||
Reference in new issue
Block a user