Lines Matching refs:mode

886  * Determine mode of file based on ACL.
893 mode_t mode;
901 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX));
923 mode |= S_IRUSR;
930 mode |= S_IWUSR;
937 mode |= S_IXUSR;
946 mode |= S_IRGRP;
953 mode |= S_IWGRP;
960 mode |= S_IXGRP;
968 mode |= S_IRUSR;
974 mode |= S_IRGRP;
980 mode |= S_IROTH;
988 mode |= S_IWUSR;
994 mode |= S_IWGRP;
1000 mode |= S_IWOTH;
1008 mode |= S_IXUSR;
1014 mode |= S_IXGRP;
1020 mode |= S_IXOTH;
1028 * mode is not affected
1042 (mode & ALL_MODE_EXECS) != ALL_MODE_EXECS))
1050 return (mode);
1170 uint64_t mode;
1176 mode = zp->z_mode;
1178 mode = zfs_mode_compute(mode, aclp, &zp->z_pflags,
1181 zp->z_mode = mode;
1183 &mode, sizeof (mode));
1316 zfs_acl_chmod(vtype_t vtype, uint64_t mode, boolean_t split, boolean_t trim,
1336 acl_trivial_access_masks((mode_t)mode, isdir, &masks);
1364 * ACEs used to represent the file mode may be divided
1367 * Skip regular ACEs, which are replaced by the new mode.
1380 * altered along with the file mode.
1407 * than permissions of the requested group mode.
1437 zfs_acl_chmod_setattr(znode_t *zp, zfs_acl_t **aclp, uint64_t mode)
1450 zfs_acl_chmod(ZTOV(zp)->v_type, mode, B_TRUE,
1479 uint64_t mode, boolean_t *need_chmod)
1531 * not in mode
1534 !isdir && ((mode & (S_IXUSR|S_IXGRP|S_IXOTH)) == 0)) {
2080 * facilitates two things. The first is that when the working mode is
2095 * This mode is chosen by setting anyaccess to B_TRUE. The
2208 /* Put the found 'denies' back on the working mode */
2376 zfs_zaccess(znode_t *zp, int mode, int flags, boolean_t skipaclchk, cred_t *cr)
2417 * fixup mode to map to xattr perms
2420 if (mode & (ACE_WRITE_DATA|ACE_APPEND_DATA)) {
2421 mode &= ~(ACE_WRITE_DATA|ACE_APPEND_DATA);
2422 mode |= ACE_WRITE_NAMED_ATTRS;
2425 if (mode & (ACE_READ_DATA|ACE_EXECUTE)) {
2426 mode &= ~(ACE_READ_DATA|ACE_EXECUTE);
2427 mode |= ACE_READ_NAMED_ATTRS;
2442 working_mode = mode;
2456 if ((error = zfs_zaccess_common(check_zp, mode, &working_mode,
2535 * Translate traditional unix VREAD/VWRITE/VEXEC mode into
2539 zfs_zaccess_rwx(znode_t *zp, mode_t mode, int flags, cred_t *cr)
2541 return (zfs_zaccess(zp, zfs_unix_to_v4(mode >> 6), flags, B_FALSE, cr));
2548 zfs_zaccess_unix(znode_t *zp, mode_t mode, cred_t *cr)
2550 int v4_mode = zfs_unix_to_v4(mode >> 6);