Changeset 745 for trunk/server/source3/registry/reg_dispatcher.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/registry/reg_dispatcher.c
r414 r745 25 25 26 26 #include "includes.h" 27 #include "registry.h" 28 #include "reg_dispatcher.h" 29 #include "../libcli/security/security.h" 27 30 28 31 #undef DBGC_CLASS … … 35 38 ********************************************************************/ 36 39 37 static WERROR construct_registry_sd(TALLOC_CTX *ctx, SEC_DESC**psd)38 { 39 SEC_ACEace[3];40 static WERROR construct_registry_sd(TALLOC_CTX *ctx, struct security_descriptor **psd) 41 { 42 struct security_ace ace[3]; 40 43 size_t i = 0; 41 SEC_DESC*sd;42 SEC_ACL*theacl;44 struct security_descriptor *sd; 45 struct security_acl *theacl; 43 46 size_t sd_size; 44 47 … … 65 68 } 66 69 67 sd = make_sec_desc(ctx, S EC_DESC_REVISION, SEC_DESC_SELF_RELATIVE,70 sd = make_sec_desc(ctx, SD_REVISION, SEC_DESC_SELF_RELATIVE, 68 71 &global_sid_Builtin_Administrators, 69 72 &global_sid_System, NULL, theacl, … … 160 163 bool regkey_access_check(struct registry_key_handle *key, uint32 requested, 161 164 uint32 *granted, 162 const struct nt_user_token *token )163 { 164 SEC_DESC*sec_desc;165 const struct security_token *token ) 166 { 167 struct security_descriptor *sec_desc; 165 168 NTSTATUS status; 166 169 WERROR err; 170 171 /* root free-pass, like we have on all other pipes like samr, lsa, etc. */ 172 if (geteuid() == sec_initial_uid()) { 173 *granted = REG_KEY_ALL; 174 return true; 175 } 167 176 168 177 /* use the default security check if the backend has not defined its
Note:
See TracChangeset
for help on using the changeset viewer.