summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-16 13:53:54 +0100
committerGünther Deschner <gd@samba.org>2010-03-16 15:13:52 +0100
commitb4d09134fdb4e99aa42b5db3e6d54014e090a23c (patch)
tree16f20ef439bf94983211c9fc6110be68719fded6 /source3
parent27d46ba266908ad5fa5be9e553b41839dfa7d9c8 (diff)
downloadsamba-b4d09134fdb4e99aa42b5db3e6d54014e090a23c.tar.gz
samba-b4d09134fdb4e99aa42b5db3e6d54014e090a23c.tar.bz2
samba-b4d09134fdb4e99aa42b5db3e6d54014e090a23c.zip
s3-registry: make sure root has full registry access (in particular for make test).
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_dispatcher.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/registry/reg_dispatcher.c b/source3/registry/reg_dispatcher.c
index cc6d95f738..0c3ceecb6c 100644
--- a/source3/registry/reg_dispatcher.c
+++ b/source3/registry/reg_dispatcher.c
@@ -165,6 +165,12 @@ bool regkey_access_check(struct registry_key_handle *key, uint32 requested,
NTSTATUS status;
WERROR err;
+ /* root free-pass, like we have on all other pipes like samr, lsa, etc. */
+ if (geteuid() == sec_initial_uid()) {
+ *granted = REG_KEY_ALL;
+ return true;
+ }
+
/* use the default security check if the backend has not defined its
* own */