• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/

Lines Matching refs:acl

27 #include <sys/acl.h>
30 #include <sys/acl.h>
33 #include <acl/libacl.h>
44 #include <atalk/acl.h>
405 acl_t acl = NULL;
409 EC_NULL_LOG(acl = acl_get_file(path, ACL_TYPE_ACCESS));
412 while (!havemask && acl_get_entry(acl, entry_id, &e) == 1) {
428 while (acl_get_entry(acl, entry_id, &e) == 1) {
476 if (acl) acl_free(acl);
483 * Add entries of one acl to another acl
485 * @param aclp (rw) destination acl where new aces will be added
486 * @param acl (r) source acl where aces will be copied from
490 static int acl_add_acl(acl_t *aclp, const acl_t acl)
496 for (id = ACL_FIRST_ENTRY; acl_get_entry(acl, id, &se) == 1; id = ACL_NEXT_ENTRY) {
604 * @param def_aclp (rw) directories: pointer to an initialized acl_t with the default acl
606 * @param acc_aclp (rw) pointer to an initialized acl_t with the access acl
663 /* ace request inheritane but we haven't got a default acl pointer */
692 static int map_acl_posix_to_darwin(int type, const acl_t acl, darwin_ace_t *darwin_aces)
712 while (acl_get_entry(acl, entry_id, &e) == 1) {
788 static int map_acl(int type, void *acl, darwin_ace_t *buf, int ace_count)
798 mapped_aces = map_aces_solaris_to_darwin( acl, buf, ace_count);
802 mapped_aces = map_aces_darwin_to_solaris( buf, acl, ace_count);
808 mapped_aces = map_acl_posix_to_darwin(type, (const acl_t)acl, buf);
812 mapped_aces = map_acl_posix_to_darwin(type, (const acl_t)acl, buf);
865 /* if its a dir, check for default acl too */
1006 LOG(log_error, logtype_afpd, "set_acl: error setting acl: %s", strerror(errno));
1015 if ((ret = (acl(name, ACE_SETACL, new_aces_count, new_aces))) != 0) {
1016 LOG(log_error, logtype_afpd, "set_acl: error setting acl: %s", strerror(errno));
1059 /* create access acl from mode */
1519 acl_t acl = NULL;
1520 if ((acl = acl_get_file(vol->v_path, ACL_TYPE_ACCESS)) == NULL)
1528 if (acl) acl_free(acl);