summaryrefslogtreecommitdiff
path: root/source3/auth/token_util.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-30 12:47:29 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:09 +1000
commit2387e3bcfeb4c2e54342a8fff4b157e9ba68024b (patch)
tree1bf331ee3d43535c558425b84a58b9e1d106c882 /source3/auth/token_util.c
parenta02ae674dd6ffaa8ebc4017af6a644162c59a00d (diff)
downloadsamba-2387e3bcfeb4c2e54342a8fff4b157e9ba68024b.tar.gz
samba-2387e3bcfeb4c2e54342a8fff4b157e9ba68024b.tar.bz2
samba-2387e3bcfeb4c2e54342a8fff4b157e9ba68024b.zip
s3-privs Call security_token_set_privilege() rather than manual assignment
This avoids as much direct modifiction of the bitmask as possible. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/auth/token_util.c')
-rw-r--r--source3/auth/token_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index e8334c6306..bc7d998341 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -112,7 +112,7 @@ struct security_token *get_root_nt_token( void )
token = create_local_nt_token(talloc_autofree_context(), &u_sid, False,
1, &global_sid_Builtin_Administrators);
- token->privilege_mask = se_disk_operators;
+ security_token_set_privilege(token, SEC_PRIV_DISK_OPERATOR);
for_cache = token;