RemoveTcbPrivilege removes the TCB privilege from the access token of the current process.
()
| 106 | |
| 107 | // RemoveTcbPrivilege removes the TCB privilege from the access token of the current process. |
| 108 | func RemoveTcbPrivilege() { |
| 109 | removePrivileges(SeTcbPrivilege) |
| 110 | } |
| 111 | |
| 112 | func enablePrivileges(privs ...string) { |
| 113 | var token windows.Token |
no test coverage detected