summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-11-06 17:43:19 +0100
committerStefan Metzmacher <metze@samba.org>2014-04-17 14:56:06 +0200
commit6118c2ec2c3770e10fd3683c3a0b07ad43a8a10b (patch)
tree90b185ec086c7434878593defb8e8f4b9a8bb912 /source3/registry
parent15feb84273c65dbe2d3f502861c7f520c46dc9d3 (diff)
downloadsamba-6118c2ec2c3770e10fd3683c3a0b07ad43a8a10b.tar.gz
s3: Use root_mode() to get uid_wrapper working correctly.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_dispatcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_dispatcher.c b/source3/registry/reg_dispatcher.c
index e9ed14bc7d0..0f87b27698c 100644
--- a/source3/registry/reg_dispatcher.c
+++ b/source3/registry/reg_dispatcher.c
@@ -170,7 +170,7 @@ bool regkey_access_check(struct registry_key_handle *key, uint32 requested,
WERROR err;
/* root free-pass, like we have on all other pipes like samr, lsa, etc. */
- if (geteuid() == sec_initial_uid()) {
+ if (root_mode()) {
*granted = REG_KEY_ALL;
return true;
}