Lines Matching refs:mode

61 static void	acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode);
233 * non-directories. We have to check the mode here to stay
360 acl_nfs4_sync_acl_from_mode_draft(struct acl *aclp, mode_t mode,
525 * permissions of the new mode. As a special case,
530 amode = mode >> 3;
578 extramode = (mode >> 3) & 07;
579 ownermode = mode >> 6;
663 * 3. The final six ACEs are adjusted according to the incoming mode.
665 if (mode & S_IRUSR)
669 if (mode & S_IWUSR)
673 if (mode & S_IXUSR)
678 if (mode & S_IRGRP)
682 if (mode & S_IWGRP)
686 if (mode & S_IXGRP)
691 if (mode & S_IROTH)
695 if (mode & S_IWOTH)
699 if (mode & S_IXOTH)
707 acl_nfs4_sync_acl_from_mode(struct acl *aclp, mode_t mode,
712 acl_nfs4_sync_acl_from_mode_draft(aclp, mode, file_owner_id);
714 acl_nfs4_trivial_from_mode(aclp, mode);
722 mode_t old_mode = *_mode, mode = 0, seen = 0;
731 * 3.16.6.1. Recomputing mode upon SETATTR of ACL
749 mode |= S_IRUSR;
755 mode |= S_IWUSR;
761 mode |= S_IXUSR;
768 mode |= S_IRGRP;
774 mode |= S_IWGRP;
780 mode |= S_IXGRP;
787 mode |= S_IRUSR;
792 mode |= S_IRGRP;
797 mode |= S_IROTH;
804 mode |= S_IWUSR;
809 mode |= S_IWGRP;
814 mode |= S_IWOTH;
821 mode |= S_IXUSR;
826 mode |= S_IXGRP;
831 mode |= S_IXOTH;
837 *_mode = mode | (old_mode & ACL_PRESERVE_MASK);
847 struct acl *child_aclp, mode_t mode, int file_owner_id,
861 * 3.16.6.2. Applying the mode given to CREATE or OPEN
997 * 3. To ensure that the mode is honored, apply the algorithm describe
998 * in Section 2.16.6.3, using the mode that is to be used for file
1001 acl_nfs4_sync_acl_from_mode(child_aclp, mode, file_owner_id);
1010 struct acl *child_aclp, mode_t mode, int file_owner_id,
1110 * Others must be masked according to the file mode.
1112 if ((mode & S_IRGRP) == 0)
1114 if ((mode & S_IWGRP) == 0)
1117 if ((mode & S_IXGRP) == 0)
1130 struct acl *aclp, mode_t mode, int file_owner_id, int is_directory)
1142 if (mode & S_IRUSR)
1144 if (mode & S_IWUSR)
1146 if (mode & S_IXUSR)
1149 if (mode & S_IRGRP)
1151 if (mode & S_IWGRP)
1153 if (mode & S_IXGRP)
1156 if (mode & S_IROTH)
1158 if (mode & S_IWOTH)
1160 if (mode & S_IXOTH)
1178 acl_nfs4_inherit_entries(parent_aclp, aclp, mode,
1189 struct acl *child_aclp, mode_t mode, int file_owner_id,
1195 mode, file_owner_id, is_directory);
1198 mode, file_owner_id, is_directory);
1209 acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode)
1213 acl_nfs4_compute_inherited_acl_psarc(NULL, aclp, mode, -1, -1);
1222 acl_nfs4_trivial_from_mode_libc(struct acl *aclp, int mode, int canonical_six)
1227 acl_nfs4_sync_acl_from_mode_draft(aclp, mode, -1);
1229 acl_nfs4_trivial_from_mode(aclp, mode);
1273 * Compute the mode from the ACL, then compute new ACL from that mode.