MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / removePrivileges

Function removePrivileges

pkg/sys/privilege.go:118–122  ·  view source on GitHub ↗
(privs ...string)

Source from the content-addressed store, hash-verified

116}
117
118func removePrivileges(privs ...string) {
119 var token windows.Token
120 _ = windows.OpenProcessToken(windows.CurrentProcess(), windows.TOKEN_ADJUST_PRIVILEGES|windows.TOKEN_QUERY, &token)
121 _ = adjustTokenPrivileges(token, PrivilegeRemoved, privs...)
122}

Callers 1

RemoveTcbPrivilegeFunction · 0.85

Calls 1

adjustTokenPrivilegesFunction · 0.85

Tested by

no test coverage detected