• 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:rights

75  * Compile access rights for a user to one file-system object
77 * This combines combines all access rights for a user to one fs-object and
78 * returns the result as a Darwin allowed rights ACE.
96 uint32_t rights, allowed_rights = 0, denied_rights = 0, darwin_rights;
104 /* Now check requested rights */
110 rights = aces[i].a_access_mask;
139 allowed_rights |= rights;
141 /* Only or to denied rights if not previously allowed !! */
142 denied_rights |= ((!allowed_rights) & rights);
152 /* Remove denied from allowed rights */
155 /* map rights */
182 uint32_t rights;
228 /* map rights */
229 rights = 0;
232 rights |= nfsv4_to_darwin_rights[i].to;
234 darwin_aces->darwin_ace_rights = htonl(rights);
305 /* map rights */
316 "map_aces_darwin_to_solaris: ACE rights: Darwin:%08x -> NFSv4:%08x",
344 uint32_t rights = 0;
354 rights = DARWIN_ACE_READ_DATA
363 rights |= DARWIN_ACE_WRITE_DATA
368 rights |= DARWIN_ACE_DELETE_CHILD;
375 rights |= DARWIN_ACE_EXECUTE;
378 LOG(log_maxdebug, logtype_afpd, "mapped rights: 0x%08x", rights);
379 return rights;
383 * Compile access rights for a user to one file-system object
385 * This combines combines all access rights for a user to one fs-object and
386 * returns the result as a Darwin allowed rights ACE.
402 uint32_t rights = 0, maskrights = 0;
436 rights |= posix_permset_to_darwin_rights(e, S_ISDIR(sb->st_mode));
444 rights |= posix_permset_to_darwin_rights(e, S_ISDIR(sb->st_mode));
451 rights |= (posix_permset_to_darwin_rights(e, S_ISDIR(sb->st_mode)) & maskrights);
459 rights |= posix_permset_to_darwin_rights(e, S_ISDIR(sb->st_mode));
465 rights |= posix_permset_to_darwin_rights(e, S_ISDIR(sb->st_mode));
473 *result |= rights;
506 * Map Darwin ACE rights to POSIX 1e perm
508 * We can only map few rights:
704 uint32_t rights, maskrights = 0;
756 /* rights */
757 rights = posix_permset_to_darwin_rights(e, type & IS_DIR);
758 darwin_aces->darwin_ace_rights = htonl(rights);
1139 LOG(log_debug, logtype_afpd, "allowed rights from dircache: 0x%08x", allowed_rights);
1183 LOG(log_debug, logtype_afpd, "allowed rights: 0x%08x", allowed_rights);
1192 LOG(log_debug, logtype_afpd, "all requested rights are allowed: 0x%08x",
1242 /* Store ACE rights */
1470 uint32_t rights = 0;
1481 EC_ZERO_LOG(solaris_acl_rights(path, st, &rights));
1484 EC_ZERO_LOG(posix_acl_rights(path, st, &rights));
1487 LOG(log_maxdebug, logtype_afpd, "rights: 0x%08x", rights);
1489 if (rights & DARWIN_ACE_READ_DATA)
1491 if (rights & DARWIN_ACE_WRITE_DATA)
1493 if (rights & (DARWIN_ACE_EXECUTE | DARWIN_ACE_SEARCH))