os

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIntegrityLevel

func GetIntegrityLevel() (integrity int, err error)

GetIntegrityLevel determines if the agent is running in an elevated context such as root Returns 4 for root and 3 for members of the sudo group

func GetUser added in v1.6.0

func GetUser() (username, group string, err error)

GetUser enumerates the username and their primary group for the account running the agent process It is OK if this function returns empty strings because we want the agent to run regardless

Types

This section is empty.

Directories

Path Synopsis
windows

Jump to

Keyboard shortcuts

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