Lines Matching refs:perm
2288 int perm = 0; /* Set when "ro", "rw" or "root" is matched */
2307 perm |= NFSAUTH_GROUPS;
2318 if (perm & NFSAUTH_GROUPS) {
2322 perm &= ~NFSAUTH_GROUPS;
2332 perm |= NFSAUTH_RO;
2340 perm |= NFSAUTH_RW;
2359 perm |= NFSAUTH_ROOT;
2360 perm |= NFSAUTH_UIDMAP | NFSAUTH_GIDMAP;
2363 if (perm & NFSAUTH_GROUPS) {
2367 perm &= ~NFSAUTH_GROUPS;
2379 perm |= NFSAUTH_DENIED;
2392 if (perm & NFSAUTH_UIDMAP || map_deny)
2439 perm |= NFSAUTH_UIDMAP;
2441 if (perm & NFSAUTH_GROUPS) {
2445 perm &= ~NFSAUTH_GROUPS;
2465 if (perm & NFSAUTH_GIDMAP || map_deny)
2512 perm |= NFSAUTH_GIDMAP;
2514 if (perm & NFSAUTH_GROUPS) {
2518 perm &= ~NFSAUTH_GROUPS;
2535 if (perm & NFSAUTH_ROOT) {
2541 perm |= NFSAUTH_DENIED;
2543 if (!(perm & NFSAUTH_UIDMAP))
2545 if (!(perm & NFSAUTH_GIDMAP))
2548 if (flavor != match || perm & NFSAUTH_DENIED)
2556 if ((perm & (NFSAUTH_RO | NFSAUTH_RW)) == 0)
2557 perm |= NFSAUTH_DENIED;
2564 perm |= NFSAUTH_RW;
2572 if (perm & NFSAUTH_RO && perm & NFSAUTH_RW) {
2580 perm &= ~(NFSAUTH_RW);
2582 perm &= ~(NFSAUTH_RO);
2586 return (perm);
2647 int perm = 0; /* Set when "ro", "rw" or "root" is matched */
2666 perm |= NFSAUTH_GROUPS;
2695 perm |= NFSAUTH_RO;
2706 perm |= NFSAUTH_RW;
2728 perm |= NFSAUTH_ROOT;
2729 perm |= NFSAUTH_UIDMAP | NFSAUTH_GIDMAP;
2732 if (perm & NFSAUTH_GROUPS) {
2736 perm &= ~NFSAUTH_GROUPS;
2748 perm |= NFSAUTH_DENIED;
2761 if (!match || perm & NFSAUTH_UIDMAP || map_deny)
2808 perm |= NFSAUTH_UIDMAP;
2810 if (perm & NFSAUTH_GROUPS) {
2814 perm &= ~NFSAUTH_GROUPS;
2834 if (!match || perm & NFSAUTH_GIDMAP || map_deny)
2881 perm |= NFSAUTH_GIDMAP;
2883 if (perm & NFSAUTH_GROUPS) {
2887 perm &= ~NFSAUTH_GROUPS;
2903 if (perm & NFSAUTH_ROOT) {
2909 perm |= NFSAUTH_DENIED;
2911 if (!(perm & NFSAUTH_UIDMAP))
2913 if (!(perm & NFSAUTH_GIDMAP))
2917 * If no match then set the perm accordingly
2919 if (!match || perm & NFSAUTH_DENIED) {
2931 if ((perm & (NFSAUTH_RO | NFSAUTH_RW)) == 0) {
2933 perm |= NFSAUTH_WRONGSEC;
2935 perm |= NFSAUTH_DENIED;
2943 perm |= NFSAUTH_RW;
2951 if (perm & NFSAUTH_RO && perm & NFSAUTH_RW) {
2959 perm &= ~(NFSAUTH_RW);
2961 perm &= ~(NFSAUTH_RO);
2967 return (perm);