/asus-wl-520gu-7.0.1.45/src/router/samba/source/lib/ |
H A D | secacl.c | 30 SEC_ACL *make_sec_acl(TALLOC_CTX *ctx, uint16 revision, int num_aces, SEC_ACE *ace_list) argument 39 dst->num_aces = num_aces; 45 entries in it. This is achieved by checking that num_aces is a 48 if ((num_aces) && 49 ((dst->ace = (SEC_ACE *)talloc(ctx, sizeof(SEC_ACE) * num_aces)) 54 for (i = 0; i < num_aces; i++) { 71 return make_sec_acl(ctx, src->revision, src->num_aces, src->ace); 95 if (s1->num_aces != s2->num_aces) { [all...] |
H A D | secace.c | 242 void dacl_sort_into_canonical_order(SEC_ACE *srclist, unsigned int num_aces) argument 246 if (!srclist || num_aces == 0) 250 qsort( srclist, num_aces, sizeof(srclist[0]), QSORT_CAST nt_ace_inherit_comp); 253 for (i = 0; i < num_aces; i++ ) { 267 if (num_aces - i) 268 qsort( &srclist[i], num_aces - i, sizeof(srclist[0]), QSORT_CAST nt_ace_canon_comp);
|
H A D | secdesc.c | 331 status = sec_ace_add_sid(ctx, &ace, psd[0]->dacl->ace, &psd[0]->dacl->num_aces, sid, mask); 336 if (!(dacl = make_sec_acl(ctx, psd[0]->dacl->revision, psd[0]->dacl->num_aces, ace))) 359 status = sec_ace_mod_sid(sd->dacl->ace, sd->dacl->num_aces, sid, mask); 383 status = sec_ace_del_sid(ctx, &ace, psd[0]->dacl->ace, &psd[0]->dacl->num_aces, sid); 388 if (!(dacl = make_sec_acl(ctx, psd[0]->dacl->revision, psd[0]->dacl->num_aces, ace))) 420 if (!(new_ace_list = talloc(ctx, sizeof(SEC_ACE) * the_acl->num_aces))) 423 for (i = 0; the_acl && i < the_acl->num_aces; i++) {
|
H A D | util_seaccess.c | 99 for ( i = 0 ; i < the_acl->num_aces; i++) { 284 for ( i = 0 ; i < the_acl->num_aces && tmp_acc_desired != 0; i++) {
|
/asus-wl-520gu-7.0.1.45/src/router/samba/testsuite/smbd/ |
H A D | se_access_check_utils.c | 61 int num_aces = 0; local 74 sizeof(SEC_ACE) * (num_aces + 1)))) { 83 init_sec_ace(&aces[num_aces], &sid, ace_list->type, 86 num_aces++; 92 result = make_sec_acl(ACL_REVISION, num_aces, aces);
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/rpcclient/ |
H A D | display_sec.c | 109 sec_acl->num_aces, sec_acl->revision); 112 if (sec_acl->size != 0 && sec_acl->num_aces != 0) 113 for (i = 0; i < sec_acl->num_aces; i++)
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/libads/ |
H A D | disp_sec.c | 133 sec_acl->num_aces); 149 for (i = 0; i < sd->sacl->num_aces; i ++) 153 for (i = 0; i < sd->dacl->num_aces; i ++)
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/utils/ |
H A D | smbcacls.c | 328 aces = calloc(1+(*the_acl)->num_aces,sizeof(SEC_ACE)); 329 memcpy(aces, (*the_acl)->ace, (*the_acl)->num_aces * sizeof(SEC_ACE)); 330 memcpy(aces+(*the_acl)->num_aces, ace, sizeof(SEC_ACE)); 331 new = make_sec_acl(ctx,(*the_acl)->revision,1+(*the_acl)->num_aces, aces); 429 for (i = 0; sd->dacl && i < sd->dacl->num_aces; i++) { 562 qsort(the_acl->ace, the_acl->num_aces, sizeof(the_acl->ace[0]), QSORT_CAST ace_compare); 564 for (i=1;i<the_acl->num_aces;) { 567 for (j=i; j<the_acl->num_aces-1; j++) { 570 the_acl->num_aces--; 616 for (i=0;sd->dacl && i<sd->dacl->num_aces; [all...] |
H A D | editreg.c | 429 unsigned short num_aces; member in struct:acl_struct_s 546 DWORD num_aces; member in struct:acl_struct 934 for (i=0; i<acl->num_aces; i++) 1251 acl->num_aces = 8; 1876 int i, num_aces; local 1878 num_aces = IVAL(&acl->num_aces); 1880 tmp = (ACL *)malloc(sizeof(ACL) + (num_aces - 1)*sizeof(ACE *)); 1883 tmp->num_aces = num_aces; [all...] |
H A D | profiles.c | 388 DWORD num_aces; member in struct:acl_struct 508 ace_cnt = IVAL(&acl->num_aces, 0);
|
/asus-wl-520gu-7.0.1.45/src/router/samba/testsuite/printing/ |
H A D | psec.c | 238 for (i = 0; i < secdesc_ctr->sec->dacl->num_aces; i++) { 265 int result = 0, num_aces = 0; local 319 (num_aces + 1)); 322 init_sec_ace(&ace_list[num_aces], &sid, ace_type, sa, 325 num_aces++; 328 dacl = make_sec_acl(ACL_REVISION, num_aces, ace_list);
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/python/ |
H A D | py_ntsec.c | 128 ace_list = PyList_New(acl->num_aces); 130 for (i = 0; i < acl->num_aces; i++) { 158 acl->num_aces = PyList_Size(obj); 160 acl->ace = talloc(mem_ctx, acl->num_aces * sizeof(SEC_ACE)); 163 for (i = 0; i < acl->num_aces; i++) {
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/rpc_parse/ |
H A D | parse_sec.c | 148 if(!prs_uint32("num_aces ", ps, depth, &psa->num_aces)) 153 * Even if the num_aces is zero, allocate memory as there's a difference 157 if((psa->ace = (SEC_ACE *)prs_alloc_mem(ps,sizeof(psa->ace[0]) * (psa->num_aces+1))) == NULL) 161 for (i = 0; i < psa->num_aces; i++) {
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/ |
H A D | posix_acls.c | 1235 for(i = 0; i < dacl->num_aces; i++) { 1272 for(i = 0; i < dacl->num_aces; i++) { 1275 for (j = i + 1; j < dacl->num_aces; j++) { 1303 for(i = 0; i < dacl->num_aces; i++) { 2562 static size_t merge_default_aces( SEC_ACE *nt_ace_list, size_t num_aces) argument 2566 for (i = 0; i < num_aces; i++) { 2567 for (j = i+1; j < num_aces; j++) { 2592 if (num_aces - i - 1 > 0) 2593 memmove(&nt_ace_list[i], &nt_ace_list[i+1], (num_aces-i-1) * 2606 if (num_aces 2643 size_t num_aces = 0; local [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/libsmb/ |
H A D | libsmbclient.c | 2586 qsort(the_acl->ace, the_acl->num_aces, sizeof(the_acl->ace[0]), QSORT_CAST ace_compare); 2588 for (i=1;i<the_acl->num_aces;) { 2591 for (j=i; j<the_acl->num_aces-1; j++) { 2594 the_acl->num_aces--; 2796 aces = calloc(1+(*the_acl)->num_aces,sizeof(SEC_ACE)); 2797 memcpy(aces, (*the_acl)->ace, (*the_acl)->num_aces * sizeof(SEC_ACE)); 2798 memcpy(aces+(*the_acl)->num_aces, ace, sizeof(SEC_ACE)); 2799 new = make_sec_acl(ctx,(*the_acl)->revision,1+(*the_acl)->num_aces, aces); 3073 for (i = 0; sd->dacl && i < sd->dacl->num_aces; i++) { 3203 old->dacl->num_aces [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/include/ |
H A D | rpc_secdes.h | 164 uint32 num_aces; /* number of Access Control Entries */ member in struct:security_acl_info
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/printing/ |
H A D | nt_printing.c | 4796 printername, the_acl->num_aces)); 4798 for (i = 0; i < the_acl->num_aces; i++) { 4857 for (i = 0; sd->dacl && i < sd->dacl->num_aces; i++) {
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/rpc_server/ |
H A D | srv_spoolss_nt.c | 5865 PRINTERNAME(snum), the_acl->num_aces)); 5867 for (i = 0; i < the_acl->num_aces; i++) { 5880 PRINTERNAME(snum), the_acl->num_aces)); 5882 for (i = 0; i < the_acl->num_aces; i++) {
|
H A D | srv_srvsvc_nt.c | 307 for (i = 0; i < ps_dacl->num_aces; i++) {
|