summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-31 10:51:45 -0700
committerJeremy Allison <jra@samba.org>2008-10-31 10:51:45 -0700
commit8344e945742ff343702b9667e26082c560014523 (patch)
tree1e63530a7e4d96b47abaab0192f1f302b6aefb2e /source3/registry
parent161cb81911fe8877bfefd8bd3553f0b3166299fb (diff)
downloadsamba-8344e945742ff343702b9667e26082c560014523.tar.gz
samba-8344e945742ff343702b9667e26082c560014523.tar.bz2
samba-8344e945742ff343702b9667e26082c560014523.zip
Unify se_access_check with the S4 code. Will make
calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier for files. Jeremy.
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_dispatcher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/registry/reg_dispatcher.c b/source3/registry/reg_dispatcher.c
index d06410a1b3..7d950c3c4e 100644
--- a/source3/registry/reg_dispatcher.c
+++ b/source3/registry/reg_dispatcher.c
@@ -170,7 +170,8 @@ bool regkey_access_check( REGISTRY_KEY *key, uint32 requested, uint32 *granted,
se_map_generic( &requested, &reg_generic_map );
- if (!se_access_check(sec_desc, token, requested, granted, &status)) {
+ status =se_access_check(sec_desc, token, requested, granted);
+ if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(mem_ctx);
return false;
}