priv

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drop

func Drop() error

Drop drops privileges of the thread or process. Since Go 1.16 syscall.Setresuid is an all-thread operation. A runtime.LockOSThread operation remains for older versions of Go.

func Escalate

func Escalate() error

Escalate escalates privileges of the thread or process. Since Go 1.16 syscall.Setresuid is an all-thread operation. A runtime.LockOSThread operation remains for older versions of Go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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