Lines Matching refs:mode
35 #include <sys/mode.h>
299 * Change the mode bits to follow the acl list
624 * Check the inode's ACL's to see if this mode of access is
631 ufs_acl_access(struct inode *ip, int mode, cred_t *cr)
634 * mode mode of access read, write, execute/examine
660 * (1) If user owns the file, obey user mode bits
664 return (MODE_CHECK(owner, mode, (sp->aowner->acl_ic_perm << 6),
674 return (MODE_CHECK(owner, mode,
680 * (3) If user belongs to file's group, obey group mode bits
682 * at both the group mode bits and any ACL_GROUP entries.
688 return (MODE_CHECK(owner, mode, (gperm << 6), cr, ip));
704 return (MODE_CHECK(owner, mode, ((gperm & mask) << 6), cr, ip));
707 * (5) Finally, use the "other" mode bits
709 return (MODE_CHECK(owner, mode, sp->aother->acl_ic_perm << 6, cr, ip));
726 * If no ACLs are present, fabricate one from the mode bits.
728 * already have the mode bits handy, so we'll avoid going
1307 * mode - creation modes
1311 ufs_si_inherit(struct inode *ip, struct inode *tdp, o_mode_t mode, cred_t *cr)
1369 MODE2ACL(tsp->aowner, (mode >> 6), ip->i_uid);
1370 MODE2ACL(tsp->agroup, (mode >> 3), ip->i_gid);
1371 MODE2ACL(tsp->aother, (mode), 0);
1374 tsp->aclass.acl_maskbits &= mode >> 3;
1391 * save the new 9 mode bits in the inode (ip->ic_smode) for
1392 * ufs_getattr. Be sure the mode can be recovered if the store