os

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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

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