diff options
Diffstat (limited to 'libcli/security/privileges.c')
-rw-r--r-- | libcli/security/privileges.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index adb67c19f2..d2731c3dd0 100644 --- a/libcli/security/privileges.c +++ b/libcli/security/privileges.c @@ -422,6 +422,19 @@ bool security_token_has_privilege(const struct security_token *token, enum sec_p return false; } +bool security_token_system_privilege(const struct security_token *token) +{ + if (token == NULL) { + return false; + } + + if (token->privilege_mask == (uint64_t)~0) { + return true; + } + + return false; +} + /* set a bit in the privilege mask */ |