user

package
v0.0.0-...-463c776 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package user provides helpers to change the user of the process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatadogAgentToRoot

func DatadogAgentToRoot() error

DatadogAgentToRoot changes the user of the process to root from the Datadog Agent user.

func IsRoot

func IsRoot() bool

IsRoot returns true if the process is running as root.

func RootToDatadogAgent

func RootToDatadogAgent() error

RootToDatadogAgent changes the user of the process to the Datadog Agent user from root. Note that we actually only set dd-agent as the effective user, not the real user, in oder to escalate privileges back when needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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