Re-enable dumping prevention

This commit is contained in:
Bernd Schoolmann 2023-12-28 13:42:54 +01:00
parent 2c3c0c6218
commit 295318d562
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@ import (
"time"
"github.com/godbus/dbus/v5"
"golang.org/x/sys/unix"
)
func DisableDumpable() error {
// return unix.Prctl(unix.PR_SET_DUMPABLE, 0, 0, 0, 0)
return nil
return unix.Prctl(unix.PR_SET_DUMPABLE, 0, 0, 0, 0)
}
func MonitorLocks(onlock func()) error {