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 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.
Click to show internal directories.
Click to hide internal directories.