diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_dispatcher.c | 6 |
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 */ |