Lines Matching refs:mode

44 #include <sys/mode.h>
889 * Determine mode of file based on ACL.
896 mode_t mode;
904 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX));
926 mode |= S_IRUSR;
933 mode |= S_IWUSR;
940 mode |= S_IXUSR;
949 mode |= S_IRGRP;
956 mode |= S_IWGRP;
963 mode |= S_IXGRP;
971 mode |= S_IRUSR;
977 mode |= S_IRGRP;
983 mode |= S_IROTH;
991 mode |= S_IWUSR;
997 mode |= S_IWGRP;
1003 mode |= S_IWOTH;
1011 mode |= S_IXUSR;
1017 mode |= S_IXGRP;
1023 mode |= S_IXOTH;
1031 * mode is not affected
1045 (mode & ALL_MODE_EXECS) != ALL_MODE_EXECS))
1053 return (mode);
1187 uint64_t mode;
1192 mode = zp->z_mode;
1194 mode = zfs_mode_compute(mode, aclp, &zp->z_pflags,
1197 zp->z_mode = mode;
1199 &mode, sizeof (mode));
1333 zfs_acl_chmod(vtype_t vtype, uint64_t mode, boolean_t split, boolean_t trim,
1353 acl_trivial_access_masks((mode_t)mode, isdir, &masks);
1381 * ACEs used to represent the file mode may be divided
1384 * Skip regular ACEs, which are replaced by the new mode.
1397 * altered along with the file mode.
1424 * than permissions of the requested group mode.
1454 zfs_acl_chmod_setattr(znode_t *zp, zfs_acl_t **aclp, uint64_t mode)
1467 zfs_acl_chmod(ZTOV(zp)->v_type, mode, B_TRUE,
1497 uint64_t mode)
1535 * not in mode
1538 !isdir && ((mode & (S_IXUSR|S_IXGRP|S_IXOTH)) == 0)) {
2067 * facilitates two things. The first is that when the working mode is
2082 * This mode is chosen by setting anyaccess to B_TRUE. The
2194 /* Put the found 'denies' back on the working mode */
2344 zfs_zaccess(znode_t *zp, int mode, int flags, boolean_t skipaclchk, cred_t *cr)
2376 * fixup mode to map to xattr perms
2379 if (mode & (ACE_WRITE_DATA|ACE_APPEND_DATA)) {
2380 mode &= ~(ACE_WRITE_DATA|ACE_APPEND_DATA);
2381 mode |= ACE_WRITE_NAMED_ATTRS;
2384 if (mode & (ACE_READ_DATA|ACE_EXECUTE)) {
2385 mode &= ~(ACE_READ_DATA|ACE_EXECUTE);
2386 mode |= ACE_READ_NAMED_ATTRS;
2400 working_mode = mode;
2414 if ((error = zfs_zaccess_common(check_zp, mode, &working_mode,
2493 * Translate traditional unix VREAD/VWRITE/VEXEC mode into
2497 zfs_zaccess_rwx(znode_t *zp, mode_t mode, int flags, cred_t *cr)
2499 return (zfs_zaccess(zp, zfs_unix_to_v4(mode >> 6), flags, B_FALSE, cr));
2506 zfs_zaccess_unix(znode_t *zp, mode_t mode, cred_t *cr)
2508 int v4_mode = zfs_unix_to_v4(mode >> 6);
2628 * or we're in backward compatibility mode and the
2670 * the current access mode of the container, but it
2679 * the VWRITE flag in the current access mode.