• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/etc/afpd/

Lines Matching refs:acl

28 #include <sys/acl.h>
31 #include <sys/acl.h>
34 #include <acl/libacl.h>
45 #include <atalk/acl.h>
411 acl_t acl = NULL;
415 EC_NULL_LOGSTR(acl = acl_get_file(path, ACL_TYPE_ACCESS),
419 while (acl_get_entry(acl, entry_id, &e) == 1) {
483 if (acl) acl_free(acl);
550 acl_t acl = NULL;
559 EC_NULL_LOG(acl = acl_get_file(path, ACL_TYPE_ACCESS));
562 while (acl_get_entry(acl, entry_id, &entry) == 1) {
621 if (acl) acl_free(acl);
627 * Add entries of one acl to another acl
629 * @param aclp (rw) destination acl where new aces will be added
630 * @param acl (r) source acl where aces will be copied from
634 static int acl_add_acl(acl_t *aclp, const acl_t acl)
640 for (id = ACL_FIRST_ENTRY; acl_get_entry(acl, id, &se) == 1; id = ACL_NEXT_ENTRY) {
749 the default acl files: *def_aclp will be NULL
750 * @param acc_aclp (rw) pointer to an initialized acl_t with the access acl
753 * acl or an extended default acl.
812 /* ace request inheritane but we haven't got a default acl pointer */
841 static int map_acl_posix_to_darwin(int type, const acl_t acl, darwin_ace_t *darwin_aces)
861 while (acl_get_entry(acl, entry_id, &e) == 1) {
937 static int map_acl(int type, void *acl, darwin_ace_t *buf, int ace_count)
947 mapped_aces = map_aces_solaris_to_darwin( acl, buf, ace_count);
951 mapped_aces = map_aces_darwin_to_solaris( buf, acl, ace_count);
957 mapped_aces = map_acl_posix_to_darwin(type, (const acl_t)acl, buf);
961 mapped_aces = map_acl_posix_to_darwin(type, (const acl_t)acl, buf);
1014 /* if its a dir, check for default acl too */
1155 LOG(log_error, logtype_afpd, "set_acl: error setting acl: %s", strerror(errno));
1164 if ((ret = (acl(name, ACE_SETACL, new_aces_count, new_aces))) != 0) {
1165 LOG(log_error, logtype_afpd, "set_acl: error setting acl: %s", strerror(errno));
1190 acl_t acl;
1194 if (!(acl = acl_init(3)))
1197 if (acl_create_entry(&acl, &entry) != 0)
1210 if (acl_create_entry(&acl, &entry) != 0)
1223 if (acl_create_entry(&acl, &entry) != 0)
1236 return acl;
1239 acl_free(acl);
1258 /* flags to indicate if the object has a minimal default acl and/or an extended
1259 * default acl.
1267 /* Iterate through acl and remove all extended acl entries. */
1277 /* In case we are acting on a directory prepare a default acl. For files default_acl will be NULL.
1278 * If the directory already has a default acl it will be preserved.
1286 /* If default_acl is not empty then the dir has a default acl. */
1308 /* If the dir has an extended default acl it's ACL_MASK must be updated.*/
1772 acl_t acl = NULL;
1774 if ((acl = acl_get_file(vol->v_path, ACL_TYPE_ACCESS)) == NULL)
1782 if (acl) acl_free(acl);