git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcaac7f
)
auth: add SeDiskOperatorsPrivilege to get_root_nt_token to fix registry shares.
author
Michael Adam
<obnox@samba.org>
Tue, 15 Apr 2008 18:41:14 +0000
(20:41 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 15 Apr 2008 18:41:14 +0000
(20:41 +0200)
Michael
(This used to be commit
6bb107b17d557c27d035ca518ab61296814a3cea
)
source3/auth/token_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/token_util.c
b/source3/auth/token_util.c
index fc93060fc6a61e4cb235236db5862b90a11d7c42..6720a2cbd86cd4caa4a1a2527304f7c028dfa5e4 100644
(file)
--- a/
source3/auth/token_util.c
+++ b/
source3/auth/token_util.c
@@
-105,6
+105,8
@@
NT_USER_TOKEN *get_root_nt_token( void )
token = create_local_nt_token(NULL, &u_sid, False,
1, &global_sid_Builtin_Administrators);
+ token->privileges = se_disk_operators;
+
memcache_add_talloc(
NULL, SINGLETON_CACHE_TALLOC,
data_blob_string_const("root_nt_token"), token);