summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-06-15 09:14:26 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-06-15 09:18:32 +0200
commitf0c58007588f1e6346f378a13c9d881c25eabbd8 (patch)
tree75ef23163924e303dfc44264d13a44867e16d392 /source3/auth
parent8cca7b09ad349e8d549eb326cdd2362cf3843773 (diff)
downloadsamba-f0c58007588f1e6346f378a13c9d881c25eabbd8.tar.gz
samba-f0c58007588f1e6346f378a13c9d881c25eabbd8.tar.bz2
samba-f0c58007588f1e6346f378a13c9d881c25eabbd8.zip
s3-auth: Give the SYSTEM token all privileges
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index f270ccd413..825de8a2e3 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -982,6 +982,10 @@ static NTSTATUS make_system_session_info_from_pw(TALLOC_CTX *mem_ctx,
}
talloc_free(server_info);
+
+ /* SYSTEM has all privilages */
+ (*session_info)->security_token->privilege_mask = ~0;
+
talloc_steal(mem_ctx, *session_info);
status = NT_STATUS_OK;