Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DropPrivFunc ¶ added in v1.2.1
type DropPrivFunc func() error
func Escalate ¶
func Escalate() (DropPrivFunc, error)
Escalate escalates privileges of the thread or process. Since Go 1.16 syscall.Setresuid is an all-thread operation, keep calling syscall directly to restore old behavior of changing the UID for the locked thread only.
Click to show internal directories.
Click to hide internal directories.