mirror of
https://github.com/quexten/goldwarden.git
synced 2024-12-18 16:11:31 +03:00
10 lines
172 B
Go
10 lines
172 B
Go
|
//go:build linux || freebsd
|
||
|
|
||
|
package processsecurity
|
||
|
|
||
|
import "golang.org/x/sys/unix"
|
||
|
|
||
|
func DisableDumpable() error {
|
||
|
return unix.Prctl(unix.PR_SET_DUMPABLE, 0, 0, 0, 0)
|
||
|
}
|