Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/registry/reg_dispatcher.c

    r414 r745  
    2525
    2626#include "includes.h"
     27#include "registry.h"
     28#include "reg_dispatcher.h"
     29#include "../libcli/security/security.h"
    2730
    2831#undef DBGC_CLASS
     
    3538********************************************************************/
    3639
    37 static WERROR construct_registry_sd(TALLOC_CTX *ctx, SEC_DESC **psd)
    38 {
    39         SEC_ACE ace[3];
     40static WERROR construct_registry_sd(TALLOC_CTX *ctx, struct security_descriptor **psd)
     41{
     42        struct security_ace ace[3];
    4043        size_t i = 0;
    41         SEC_DESC *sd;
    42         SEC_ACL *theacl;
     44        struct security_descriptor *sd;
     45        struct security_acl *theacl;
    4346        size_t sd_size;
    4447
     
    6568        }
    6669
    67         sd = make_sec_desc(ctx, SEC_DESC_REVISION, SEC_DESC_SELF_RELATIVE,
     70        sd = make_sec_desc(ctx, SD_REVISION, SEC_DESC_SELF_RELATIVE,
    6871                           &global_sid_Builtin_Administrators,
    6972                           &global_sid_System, NULL, theacl,
     
    160163bool regkey_access_check(struct registry_key_handle *key, uint32 requested,
    161164                         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;
    165168        NTSTATUS status;
    166169        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        }
    167176
    168177        /* use the default security check if the backend has not defined its
Note: See TracChangeset for help on using the changeset viewer.