Lines Matching defs:acl
47 #include <sys/acl.h>
419 acl_t acl;
445 acl = acl_get_fd_np(source_fd, acl_type);
446 if (acl == NULL) {
447 warn("failed to get acl entries while setting %s", to.p_path);
450 if (acl_is_trivial_np(acl, &trivial)) {
452 acl_free(acl);
456 acl_free(acl);
459 if (acl_set_fd_np(dest_fd, acl, acl_type) < 0) {
460 warn("failed to set acl entries for %s", to.p_path);
461 acl_free(acl);
464 acl_free(acl);
473 struct acl *aclp;
474 acl_t acl;
513 * size ACL will be returned. So it is not safe to simply
514 * check the pointer to see if the default ACL is present.
516 acl = aclgetf(source_dir, ACL_TYPE_DEFAULT);
517 if (acl == NULL) {
518 warn("failed to get default acl entries on %s",
522 aclp = &acl->ats_acl;
524 ACL_TYPE_DEFAULT, acl) < 0) {
525 warn("failed to set default acl entries on %s",
527 acl_free(acl);
530 acl_free(acl);
532 acl = aclgetf(source_dir, acl_type);
533 if (acl == NULL) {
534 warn("failed to get acl entries on %s", source_dir);
537 if (acl_is_trivial_np(acl, &trivial)) {
539 acl_free(acl);
543 acl_free(acl);
546 if (aclsetf(dest_dir, acl_type, acl) < 0) {
547 warn("failed to set acl entries on %s", dest_dir);
548 acl_free(acl);
551 acl_free(acl);