diff options
author | Gerald Carter <jerry@samba.org> | 2005-06-17 01:57:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:19 -0500 |
commit | 2102f6bff9641eeec3b593529be7bf8d9ec784d4 (patch) | |
tree | 2ecf1b3ba859c27a9ff324e0148c2cc21af169fb /source3/include | |
parent | d9e12b4df7fb8081190910ae25e98d379acda13d (diff) | |
download | samba-2102f6bff9641eeec3b593529be7bf8d9ec784d4.tar.gz samba-2102f6bff9641eeec3b593529be7bf8d9ec784d4.tar.bz2 samba-2102f6bff9641eeec3b593529be7bf8d9ec784d4.zip |
r7664: add access check hooks to _reg_open_entry which are passed off
to the reg_XXX backend. If the backend does not define
a regkey_access_check() function, we default to using the
standard registry_access_check()
(This used to be commit 2f08a904eee772e7d99ae6e3e4c922f74732284f)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/rpc_reg.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/include/rpc_reg.h b/source3/include/rpc_reg.h index c83802b3f5..270ba32f4b 100644 --- a/source3/include/rpc_reg.h +++ b/source3/include/rpc_reg.h @@ -96,7 +96,7 @@ typedef struct { int (*fetch_values) ( char *key, REGVAL_CTR *val ); BOOL (*store_subkeys)( char *key, REGSUBKEY_CTR *subkeys ); BOOL (*store_values)( char *key, REGVAL_CTR *val ); - BOOL (*reg_access_check)( uint32 parent_granted, uint32 requested, uint32 *granted ); + BOOL (*reg_access_check)( const char *keyname, uint32 requested, uint32 *granted, NT_USER_TOKEN *token ); } REGISTRY_OPS; typedef struct { @@ -108,13 +108,11 @@ typedef struct { /* structure to store the registry handles */ typedef struct _RegistryKey { - struct _RegistryKey *prev, *next; - /* POLICY_HND hnd; */ - pstring name; /* full name of registry key */ - REGISTRY_HOOK *hook; - + pstring name; /* full name of registry key */ + uint32 access_granted; + REGISTRY_HOOK *hook; } REGISTRY_KEY; /* @@ -412,7 +410,7 @@ typedef struct { } REG_Q_OPEN_ENTRY; typedef struct { - POLICY_HND pol; + POLICY_HND handle; WERROR status; } REG_R_OPEN_ENTRY; |