summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-15 20:41:14 +0200
committerMichael Adam <obnox@samba.org>2008-04-15 20:41:14 +0200
commitb64be89a6ddd1b9c62df98801f34f4d9116a06bf (patch)
treee85b8d825c038c8136e5e88626ddc338d5f76d5d /source3
parentbcaac7fa36329acd8220a4d7dbfc9a2ca9c12b58 (diff)
downloadsamba-b64be89a6ddd1b9c62df98801f34f4d9116a06bf.tar.gz
samba-b64be89a6ddd1b9c62df98801f34f4d9116a06bf.tar.bz2
samba-b64be89a6ddd1b9c62df98801f34f4d9116a06bf.zip
auth: add SeDiskOperatorsPrivilege to get_root_nt_token to fix registry shares.
Michael (This used to be commit 6bb107b17d557c27d035ca518ab61296814a3cea)
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/token_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index fc93060fc6..6720a2cbd8 100644
--- 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);