priv

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL