/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libsmbclient/ |
H A D | testacl.c | 28 static char *the_acl = NULL; local 93 the_acl = strdup(poptGetOptArg(pc)); 98 the_acl = strdup(poptGetOptArg(pc)); 103 the_acl = strdup(poptGetOptArg(pc)); 108 the_acl = strdup(poptGetOptArg(pc)); 113 the_acl = strdup(poptGetOptArg(pc)); 118 the_acl = strdup(poptGetOptArg(pc)); 123 the_acl = strdup(poptGetOptArg(pc)); 153 if (the_acl == NULL) 157 the_acl [all...] |
H A D | testacl2.c | 29 static char *the_acl = NULL; local 44 the_acl = strdup("system.nt_sec_desc.*"); 45 ret = smbc_getxattr(argv[1], the_acl, value, sizeof(value)); 58 ret = smbc_setxattr(argv[1], the_acl, value, strlen(value), flags); 69 ret = smbc_setxattr(argv[1], the_acl, value, strlen(value), flags);
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/utils/ |
H A D | sharesec.c | 323 static BOOL add_ace(TALLOC_CTX *mem_ctx, SEC_ACL **the_acl, SEC_ACE *ace) argument 327 if (! *the_acl) { 328 return (((*the_acl) = make_sec_acl(mem_ctx, 3, 1, ace)) != NULL); 331 if (!(aces = SMB_CALLOC_ARRAY(SEC_ACE, 1+(*the_acl)->num_aces))) { 334 memcpy(aces, (*the_acl)->aces, (*the_acl)->num_aces * sizeof(SEC_ACE)); 335 memcpy(aces+(*the_acl)->num_aces, ace, sizeof(SEC_ACE)); 336 new_ace = make_sec_acl(mem_ctx,(*the_acl)->revision,1+(*the_acl)->num_aces, aces); 338 (*the_acl) 370 sort_acl(SEC_ACL *the_acl) argument 391 change_share_sec(TALLOC_CTX *mem_ctx, const char *sharename, char *the_acl, enum acl_mode mode) argument 492 static char *the_acl = NULL; local [all...] |
H A D | smbcacls.c | 358 static BOOL add_ace(SEC_ACL **the_acl, SEC_ACE *ace) argument 362 if (! *the_acl) { 363 return (((*the_acl) = make_sec_acl(ctx, 3, 1, ace)) != NULL); 366 if (!(aces = SMB_CALLOC_ARRAY(SEC_ACE, 1+(*the_acl)->num_aces))) { 369 memcpy(aces, (*the_acl)->aces, (*the_acl)->num_aces * sizeof(SEC_ACE)); 370 memcpy(aces+(*the_acl)->num_aces, ace, sizeof(SEC_ACE)); 371 new_ace = make_sec_acl(ctx,(*the_acl)->revision,1+(*the_acl)->num_aces, aces); 373 (*the_acl) 605 sort_acl(SEC_ACL *the_acl) argument 628 cacl_set(struct cli_state *cli, char *filename, char *the_acl, enum acl_mode mode) argument 808 static char *the_acl = NULL; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/lib/ |
H A D | util_seaccess.c | 91 static BOOL get_max_access( SEC_ACL *the_acl, const NT_USER_TOKEN *token, uint32 *granted, argument 99 for ( i = 0 ; i < the_acl->num_aces; i++) { 100 SEC_ACE *ace = &the_acl->aces[i]; 218 SEC_ACL *the_acl; local 275 the_acl = sd->dacl; 279 return get_max_access( the_acl, token, acc_granted, tmp_acc_desired, 283 for ( i = 0 ; i < the_acl->num_aces && tmp_acc_desired != 0; i++) { 284 SEC_ACE *ace = &the_acl->aces[i];
|
H A D | secdesc.c | 422 SEC_ACL *new_dacl, *the_acl; local 431 the_acl = parent_ctr->dacl; 433 if (the_acl->num_aces) { 434 if (!(new_ace_list = TALLOC_ARRAY(ctx, SEC_ACE, the_acl->num_aces))) 440 for (i = 0; i < the_acl->num_aces; i++) { 441 SEC_ACE *ace = &the_acl->aces[i];
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/libsmb/ |
H A D | libsmbclient.c | 3773 sort_acl(SEC_ACL *the_acl) argument 3776 if (!the_acl) return; 3778 qsort(the_acl->aces, the_acl->num_aces, sizeof(the_acl->aces[0]), 3781 for (i=1;i<the_acl->num_aces;) { 3782 if (sec_ace_equal(&the_acl->aces[i-1], &the_acl->aces[i])) { 3784 for (j=i; j<the_acl->num_aces-1; j++) { 3785 the_acl 3997 add_ace(SEC_ACL **the_acl, SEC_ACE *ace, TALLOC_CTX *ctx) argument 5065 cacl_set(TALLOC_CTX *ctx, struct cli_state *cli, struct cli_state *ipc_cli, POLICY_HND *pol, const char *filename, const char *the_acl, int mode, int flags) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/smbd/ |
H A D | posix_acls.c | 2301 SMB_ACL_T the_acl = SMB_VFS_SYS_ACL_INIT(conn, (int)count_canon_ace_list(the_ace) + 1); local 2316 if (the_acl == NULL) { 2359 if (SMB_VFS_SYS_ACL_CREATE_ENTRY(conn, &the_acl, &the_entry) == -1) { 2436 if (SMB_VFS_SYS_ACL_CREATE_ENTRY(conn, &the_acl, &mask_entry) == -1) { 2467 if (SMB_VFS_SYS_ACL_SET_FILE(conn, fsp->fsp_name, the_acl_type, the_acl) == -1) { 2483 sret = SMB_VFS_SYS_ACL_SET_FILE(conn, fsp->fsp_name, the_acl_type, the_acl); 2498 if (SMB_VFS_SYS_ACL_SET_FD(fsp, fsp->fh->fd, the_acl) == -1) { 2514 sret = SMB_VFS_SYS_ACL_SET_FD(fsp, fsp->fh->fd, the_acl); 2533 if (the_acl != NULL) { 2534 SMB_VFS_SYS_ACL_FREE_ACL(conn, the_acl); 2560 free_empty_sys_acl(connection_struct *conn, SMB_ACL_T the_acl) argument 3614 SMB_ACL_T the_acl = SMB_VFS_SYS_ACL_INIT(conn, num_acls); local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/rpc_server/ |
H A D | srv_spoolss_nt.c | 5932 SEC_ACL *the_acl; local 5935 the_acl = old_secdesc_ctr->sec->dacl; 5937 PRINTERNAME(snum), the_acl->num_aces)); 5939 for (i = 0; i < the_acl->num_aces; i++) { 5942 sid_to_string(sid_str, &the_acl->aces[i].trustee); 5945 the_acl->aces[i].access_mask)); 5948 the_acl = secdesc_ctr->sec->dacl; 5950 if (the_acl) { 5952 PRINTERNAME(snum), the_acl->num_aces)); 5954 for (i = 0; i < the_acl [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/printing/ |
H A D | nt_printing.c | 5357 SEC_ACL *the_acl = (*secdesc_ctr)->sec->dacl; local 5361 sharename, the_acl->num_aces)); 5363 for (i = 0; i < the_acl->num_aces; i++) { 5366 sid_to_string(sid_str, &the_acl->aces[i].trustee); 5369 the_acl->aces[i].type, the_acl->aces[i].flags, 5370 the_acl->aces[i].access_mask));
|