acl 36 lib/common/acl.c xml_acl_t *acl = data; acl 38 lib/common/acl.c free(acl->xpath); acl 39 lib/common/acl.c free(acl); acl 52 lib/common/acl.c xml_acl_t *acl = NULL; acl 75 lib/common/acl.c acl = calloc(1, sizeof (xml_acl_t)); acl 76 lib/common/acl.c CRM_ASSERT(acl != NULL); acl 78 lib/common/acl.c acl->mode = mode; acl 80 lib/common/acl.c acl->xpath = strdup(xpath); acl 81 lib/common/acl.c CRM_ASSERT(acl->xpath != NULL); acl 83 lib/common/acl.c crm_element_name(xml), acl->xpath); acl 104 lib/common/acl.c acl->xpath = strdup((const char *) buf->str); acl 105 lib/common/acl.c CRM_ASSERT(acl->xpath != NULL); acl 109 lib/common/acl.c crm_element_name(xml), acl->xpath); acl 112 lib/common/acl.c return g_list_append(acls, acl); acl 239 lib/common/acl.c xml_acl_t *acl = aIter->data; acl 241 lib/common/acl.c xpathObj = xpath_search(xml, acl->xpath); acl 249 lib/common/acl.c pcmk__set_xml_flags(nodepriv, acl->mode); acl 262 lib/common/acl.c acl_to_text(acl->mode), (const char *) path->str, acl 263 lib/common/acl.c acl->xpath); acl 268 lib/common/acl.c acl_to_text(acl->mode), acl->xpath, max, acl 468 lib/common/acl.c xml_acl_t *acl = aIter->data; acl 470 lib/common/acl.c if (acl->mode != pcmk__xf_acl_deny) { acl 473 lib/common/acl.c } else if (acl->xpath) { acl 475 lib/common/acl.c xmlXPathObjectPtr xpathObj = xpath_search(target, acl->xpath); acl 489 lib/common/acl.c user, acl->xpath, max, acl 34 maint/gnulib/lib/acl-internal.c acl_extended_nontrivial (acl_t acl) acl 37 maint/gnulib/lib/acl-internal.c return (acl_entries (acl) > 0); acl 47 maint/gnulib/lib/acl-internal.c acl_access_nontrivial (acl_t acl) acl 59 maint/gnulib/lib/acl-internal.c for (got_one = acl_get_entry (acl, ACL_FIRST_ENTRY, &ace); acl 61 maint/gnulib/lib/acl-internal.c got_one = acl_get_entry (acl, ACL_NEXT_ENTRY, &ace)) acl 74 maint/gnulib/lib/acl-internal.c int count = acl->acl_cnt; acl 79 maint/gnulib/lib/acl-internal.c acl_entry_t ace = &acl->acl_entry[i]; acl 91 maint/gnulib/lib/acl-internal.c int count = acl->acl_num; acl 94 maint/gnulib/lib/acl-internal.c for (ace = acl->acl_first; count > 0; ace = ace->next, count--) acl 119 maint/gnulib/lib/acl-internal.c acl_default_nontrivial (acl_t acl) acl 122 maint/gnulib/lib/acl-internal.c return (acl_entries (acl) > 0); acl 368 maint/gnulib/lib/acl-internal.c aclv_nontrivial (int count, struct acl *entries) acl 374 maint/gnulib/lib/acl-internal.c struct acl *ace = &entries[i]; acl 395 maint/gnulib/lib/acl-internal.c acl_nontrivial (struct acl *a) acl 456 maint/gnulib/lib/acl-internal.c acl_nontrivial (int count, struct acl *entries) acl 462 maint/gnulib/lib/acl-internal.c struct acl *ace = &entries[i]; acl 483 maint/gnulib/lib/acl-internal.c if (ctx->acl) acl 484 maint/gnulib/lib/acl-internal.c acl_free (ctx->acl); acl 44 maint/gnulib/lib/acl-internal.h extern int acl (char *, int, int, struct acl *); acl 45 maint/gnulib/lib/acl-internal.h extern int aclsort (int, int, struct acl *); acl 107 maint/gnulib/lib/acl-internal.h rpl_acl_set_fd (int fd, acl_t acl) acl 109 maint/gnulib/lib/acl-internal.h return acl_set_fd (fd, ACL_TYPE_ACCESS, acl); acl 117 maint/gnulib/lib/acl-internal.h # define acl_set_fd(fd, acl) (-1) acl 231 maint/gnulib/lib/acl-internal.h extern int aclv_nontrivial (int count, struct acl *entries); acl 243 maint/gnulib/lib/acl-internal.h extern int acl_nontrivial (struct acl *a); acl 249 maint/gnulib/lib/acl-internal.h extern int acl_nontrivial (int count, struct acl *entries); acl 264 maint/gnulib/lib/acl-internal.h acl_t acl; acl 282 maint/gnulib/lib/acl-internal.h struct acl aclv_entries[NACLVENTRIES]; acl 287 maint/gnulib/lib/acl-internal.h union { struct acl a; char room[4096]; } u; acl 291 maint/gnulib/lib/acl-internal.h struct acl entries[NACLENTRIES]; acl 31 maint/gnulib/lib/acl_entries.c acl_entries (acl_t acl) acl 35 maint/gnulib/lib/acl_entries.c if (acl != NULL) acl 44 maint/gnulib/lib/acl_entries.c for (got_one = acl_get_entry (acl, ACL_FIRST_ENTRY, &ace); acl 46 maint/gnulib/lib/acl_entries.c got_one = acl_get_entry (acl, ACL_NEXT_ENTRY, &ace)) acl 54 maint/gnulib/lib/acl_entries.c for (got_one = acl_get_entry (acl, ACL_FIRST_ENTRY, &ace); acl 56 maint/gnulib/lib/acl_entries.c got_one = acl_get_entry (acl, ACL_NEXT_ENTRY, &ace)) acl 64 maint/gnulib/lib/acl_entries.c count = acl->acl_cnt; acl 69 maint/gnulib/lib/acl_entries.c count = acl->acl_num; acl 95 maint/gnulib/lib/file-has-acl.c acl_t acl = acl_get_file (name, ACL_TYPE_EXTENDED); acl 96 maint/gnulib/lib/file-has-acl.c if (acl) acl 98 maint/gnulib/lib/file-has-acl.c ret = acl_extended_nontrivial (acl); acl 99 maint/gnulib/lib/file-has-acl.c acl_free (acl); acl 104 maint/gnulib/lib/file-has-acl.c acl_t acl = acl_get_file (name, ACL_TYPE_ACCESS); acl 105 maint/gnulib/lib/file-has-acl.c if (acl) acl 109 maint/gnulib/lib/file-has-acl.c ret = acl_access_nontrivial (acl); acl 111 maint/gnulib/lib/file-has-acl.c acl_free (acl); acl 125 maint/gnulib/lib/file-has-acl.c acl = acl_get_file (name, ACL_TYPE_DEFAULT); acl 126 maint/gnulib/lib/file-has-acl.c if (acl) acl 129 maint/gnulib/lib/file-has-acl.c ret = acl_access_nontrivial (acl); acl 131 maint/gnulib/lib/file-has-acl.c acl_free (acl); acl 134 maint/gnulib/lib/file-has-acl.c ret = (0 < acl_entries (acl)); acl 135 maint/gnulib/lib/file-has-acl.c acl_free (acl); acl 181 maint/gnulib/lib/file-has-acl.c count = acl (name, GETACL, alloc, entries); acl 255 maint/gnulib/lib/file-has-acl.c count = acl (name, ACE_GETACL, alloc, entries); acl 363 maint/gnulib/lib/file-has-acl.c struct acl entries[NACLVENTRIES]; acl 366 maint/gnulib/lib/file-has-acl.c count = acl ((char *) name, ACL_GET, NACLVENTRIES, entries); acl 401 maint/gnulib/lib/file-has-acl.c void *acl = aclbuf; acl 416 maint/gnulib/lib/file-has-acl.c if (acl != aclbuf) acl 417 maint/gnulib/lib/file-has-acl.c free (acl); acl 421 maint/gnulib/lib/file-has-acl.c if (acl != aclbuf) acl 422 maint/gnulib/lib/file-has-acl.c free (acl); acl 423 maint/gnulib/lib/file-has-acl.c acl = malloc (aclsize); acl 424 maint/gnulib/lib/file-has-acl.c if (acl == NULL) acl 433 maint/gnulib/lib/file-has-acl.c int result = acl_nontrivial ((struct acl *) acl); acl 434 maint/gnulib/lib/file-has-acl.c if (acl != aclbuf) acl 435 maint/gnulib/lib/file-has-acl.c free (acl); acl 440 maint/gnulib/lib/file-has-acl.c int result = acl_nfs4_nontrivial ((nfs4_acl_int_t *) acl); acl 441 maint/gnulib/lib/file-has-acl.c if (acl != aclbuf) acl 442 maint/gnulib/lib/file-has-acl.c free (acl); acl 449 maint/gnulib/lib/file-has-acl.c if (acl != aclbuf) acl 450 maint/gnulib/lib/file-has-acl.c free (acl); acl 457 maint/gnulib/lib/file-has-acl.c union { struct acl a; char room[4096]; } u; acl 467 maint/gnulib/lib/file-has-acl.c struct acl entries[NACLENTRIES]; acl 470 maint/gnulib/lib/file-has-acl.c count = acl ((char *) name, ACL_GET, NACLENTRIES, entries); acl 46 maint/gnulib/lib/get-permissions.c ctx->acl = acl_get_fd (desc); acl 48 maint/gnulib/lib/get-permissions.c ctx->acl = acl_get_file (name, ACL_TYPE_ACCESS); acl 49 maint/gnulib/lib/get-permissions.c if (ctx->acl == NULL) acl 86 maint/gnulib/lib/get-permissions.c ctx->acl = acl_get_fd (desc); acl 88 maint/gnulib/lib/get-permissions.c ctx->acl = acl_get_file (name, ACL_TYPE_EXTENDED); acl 89 maint/gnulib/lib/get-permissions.c if (ctx->acl == NULL) acl 120 maint/gnulib/lib/get-permissions.c ret = acl (name, ACE_GETACLCNT, 0, NULL); acl 143 maint/gnulib/lib/get-permissions.c ret = acl (name, ACE_GETACL, ctx->ace_count, ctx->ace_entries); acl 175 maint/gnulib/lib/get-permissions.c ret = acl (name, GETACLCNT, 0, NULL); acl 198 maint/gnulib/lib/get-permissions.c ret = acl (name, GETACL, ctx->count, ctx->entries); acl 244 maint/gnulib/lib/get-permissions.c ret = acl ((char *) name, ACL_GET, NACLVENTRIES, ctx->aclv_entries); acl 278 maint/gnulib/lib/get-permissions.c int ret = acl ((char *) name, ACL_GET, NACLENTRIES, ctx->entries); acl 88 maint/gnulib/lib/set-permissions.c : acl (name, ACE_GETACL, alloc, entries)); acl 228 maint/gnulib/lib/set-permissions.c ret = acl (name, ACE_SETACL, count, entries); acl 261 maint/gnulib/lib/set-permissions.c ret = acl (name, SETACL, acl 350 maint/gnulib/lib/set-permissions.c union { struct acl a; char room[128]; } u; acl 507 maint/gnulib/lib/set-permissions.c if (ctx->acl) acl 508 maint/gnulib/lib/set-permissions.c acl_free (ctx->acl); acl 509 maint/gnulib/lib/set-permissions.c ctx->acl = acl_from_mode (ctx->mode); acl 510 maint/gnulib/lib/set-permissions.c if (ctx->acl == NULL) acl 514 maint/gnulib/lib/set-permissions.c if (ret == 0 && ctx->acl) acl 517 maint/gnulib/lib/set-permissions.c ret = acl_set_fd (desc, ctx->acl); acl 519 maint/gnulib/lib/set-permissions.c ret = acl_set_file (name, ACL_TYPE_ACCESS, ctx->acl); acl 525 maint/gnulib/lib/set-permissions.c if (from_mode || acl_access_nontrivial (ctx->acl) == 0) acl 570 maint/gnulib/lib/set-permissions.c if (ctx->acl == NULL) acl 572 maint/gnulib/lib/set-permissions.c acl_t acl; acl 576 maint/gnulib/lib/set-permissions.c acl = acl_get_fd (desc); acl 578 maint/gnulib/lib/set-permissions.c acl = acl_get_file (name, ACL_TYPE_EXTENDED); acl 579 maint/gnulib/lib/set-permissions.c if (acl) acl 581 maint/gnulib/lib/set-permissions.c acl_free (acl); acl 583 maint/gnulib/lib/set-permissions.c acl = acl_init (0); acl 584 maint/gnulib/lib/set-permissions.c if (acl) acl 587 maint/gnulib/lib/set-permissions.c ret = acl_set_fd (desc, acl); acl 589 maint/gnulib/lib/set-permissions.c ret = acl_set_file (name, ACL_TYPE_EXTENDED, acl); acl 590 maint/gnulib/lib/set-permissions.c acl_free (acl); acl 599 maint/gnulib/lib/set-permissions.c ret = acl_set_fd (desc, ctx->acl); acl 601 maint/gnulib/lib/set-permissions.c ret = acl_set_file (name, ACL_TYPE_EXTENDED, ctx->acl); acl 605 maint/gnulib/lib/set-permissions.c && ! acl_extended_nontrivial (ctx->acl)) acl 631 maint/gnulib/lib/set-permissions.c ret = acl (name, SETACL, ctx->count, ctx->entries); acl 648 maint/gnulib/lib/set-permissions.c ret = acl (name, ACE_SETACL, ctx->ace_count, ctx->ace_entries); acl 687 maint/gnulib/lib/set-permissions.c ret = acl ((char *) name, ACL_SET, ctx->aclv_count, ctx->aclv_entries); acl 733 maint/gnulib/lib/set-permissions.c ret = acl ((char *) name, ACL_SET, ctx->count, ctx->entries); acl 235 maint/gnulib/tests/test-sameacls.c count1 = acl (file1, GETACLCNT, 0, NULL); acl 238 maint/gnulib/tests/test-sameacls.c count2 = acl (file2, GETACLCNT, 0, NULL); acl 266 maint/gnulib/tests/test-sameacls.c if (count1 > 0 && acl (file1, GETACL, count1, entries1) < count1) acl 272 maint/gnulib/tests/test-sameacls.c if (count2 > 0 && acl (file2, GETACL, count2, entries2) < count1) acl 303 maint/gnulib/tests/test-sameacls.c count1 = acl (file1, ACE_GETACLCNT, 0, NULL); acl 306 maint/gnulib/tests/test-sameacls.c count2 = acl (file2, ACE_GETACLCNT, 0, NULL); acl 327 maint/gnulib/tests/test-sameacls.c ret = acl (file1, ACE_GETACL, count1, entries1); acl 336 maint/gnulib/tests/test-sameacls.c ret = acl (file2, ACE_GETACL, count2, entries2); acl 460 maint/gnulib/tests/test-sameacls.c struct acl dummy_entries[NACLVENTRIES]; acl 462 maint/gnulib/tests/test-sameacls.c count1 = acl ((char *) file1, ACL_CNT, NACLVENTRIES, dummy_entries); acl 466 maint/gnulib/tests/test-sameacls.c count2 = acl ((char *) file2, ACL_CNT, NACLVENTRIES, dummy_entries); acl 492 maint/gnulib/tests/test-sameacls.c struct acl *entries1 = XNMALLOC (count1, struct acl); acl 493 maint/gnulib/tests/test-sameacls.c struct acl *entries2 = XNMALLOC (count2, struct acl); acl 496 maint/gnulib/tests/test-sameacls.c if (acl ((char *) file1, ACL_GET, count1, entries1) < count1) acl 502 maint/gnulib/tests/test-sameacls.c if (acl ((char *) file2, ACL_GET, count2, entries2) < count1) acl 598 maint/gnulib/tests/test-sameacls.c union { struct acl a; char room[4096]; } acl1; acl 599 maint/gnulib/tests/test-sameacls.c union { struct acl a; char room[4096]; } acl2; acl 647 maint/gnulib/tests/test-sameacls.c count1 = acl ((char *) file1, ACL_CNT, NACLENTRIES, NULL); acl 648 maint/gnulib/tests/test-sameacls.c count2 = acl ((char *) file2, ACL_CNT, NACLENTRIES, NULL); acl 670 maint/gnulib/tests/test-sameacls.c struct acl *entries1 = XNMALLOC (count1, struct acl); acl 671 maint/gnulib/tests/test-sameacls.c struct acl *entries2 = XNMALLOC (count2, struct acl); acl 674 maint/gnulib/tests/test-sameacls.c if (acl ((char *) file1, ACL_GET, count1, entries1) < count1) acl 680 maint/gnulib/tests/test-sameacls.c if (acl ((char *) file2, ACL_GET, count2, entries2) < count1)