Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWhitelisted ¶
Checks if the given environment variable is on the execution whitelist.
func WhitelistedEnviron ¶
func WhitelistedEnviron() []string
Like os.Environ, but only returns some whitelisted environment variables.
Types ¶
type Userdata ¶
type Userdata struct { User *user.User Shell string Groups []*user.Group Environ map[string]string }
Encapsulates data about the user's session that we're representing.
func BeneathSudo ¶
func (Userdata) EscapedUsername ¶
func (*Userdata) GetSudoAccess ¶
func (usrdata *Userdata) GetSudoAccess() (access SudoAccess)
func (Userdata) NumericIds ¶
func (*Userdata) ShadowLine ¶
Click to show internal directories.
Click to hide internal directories.