Lines Matching refs:default_acl
1252 acl_t default_acl = NULL;
1277 /* In case we are acting on a directory prepare a default acl. For files default_acl will be NULL.
1283 default_acl = acl_get_file(name, ACL_TYPE_DEFAULT);
1285 if (default_acl) {
1286 /* If default_acl is not empty then the dir has a default acl. */
1287 if (acl_get_entry(default_acl, ACL_FIRST_ENTRY, &entry) == 1)
1290 acl_free(default_acl);
1292 default_acl = acl_dup(access_acl);
1295 EC_ZERO_ERR(map_aces_darwin_to_posix(daces, &default_acl, &access_acl, ace_count, &default_acl_flags), AFPERR_MISC);
1307 if (default_acl) {
1310 EC_ZERO_LOG_ERR(acl_calc_mask(&default_acl), AFPERR_MISC);
1313 EC_ZERO_LOG_ERR(acl_valid(default_acl), AFPERR_MISC);
1314 EC_ZERO_LOG_ERR(acl_set_file(name, ACL_TYPE_DEFAULT, default_acl), AFPERR_MISC);
1315 EC_ZERO_LOG_ERR(vol->vfs->vfs_acl(vol, name, ACL_TYPE_DEFAULT, 0, default_acl), AFPERR_MISC);
1321 if (default_acl) acl_free(default_acl);