VWRITE
mode |= VWRITE;
((attr->va_mode & (VWRITE>>6)) == 0))) {
VREAD | VWRITE)) != 0) {
return (ctfs_ctl_access(*vpp, VWRITE, 0, cr, ct));
if (mode & (VWRITE | VEXEC))
if (mode & (VEXEC | VWRITE))
if (mode & VWRITE)
if (mode & (VWRITE | VEXEC))
else if (vp->v_type == VDIR && (mode & VWRITE))
error = VOP_CREATE(rdvp, nm, vap, NONEXCL, VREAD|VWRITE,
error = VOP_ACCESS(odvp, VWRITE, 0, cred, ct);
error = VOP_ACCESS(ndvp, VEXEC|VWRITE, 0, cred, ct);
if ((error = VOP_ACCESS(dvp, VWRITE, 0, cred, ct)) != 0)
if ((error = VOP_ACCESS(dvp, VWRITE, 0, cred, ct)) != 0) {
if ((error = VOP_ACCESS(dvp, VEXEC|VWRITE, 0, cred, ct)) != 0)
(mode & VWRITE)) {
} else if ((vp->v_type == VDIR) && (mode & VWRITE)) {
if ((error = VOP_ACCESS(dvp, VEXEC|VWRITE, 0, cred, ct)) != 0) {
if ((error = sdev_self_access(parent, VWRITE, 0, cred, ct)) != 0) {
else if (vp->v_type == VDIR && (mode & VWRITE))
else if (vp->v_type == VDIR && (mode & VWRITE))
VREAD|VWRITE, &rvp, kcred, 0, NULL, NULL);
else if (vp->v_type == VDIR && (mode & VWRITE))
if ((m & VWRITE) && !IS_DEVVP(vp))
if (mode & VWRITE) {
if (mode & (VWRITE|VEXEC))
VWRITE) != 0) {
(error = VOP_ACCESS(vp, VWRITE, 0, cr, &ct)))
error = VOP_CREATE(dvp, name, &va, excl, VWRITE,
(error = VOP_ACCESS(vp, VWRITE, 0, cr, NULL)))
error = VOP_ACCESS(vp, VWRITE, 0, cr, NULL);
error = VOP_ACCESS(vp, VWRITE, 0, cr, NULL);
if (mode & VWRITE) {
else if (vp->v_type == VDIR && (mode & VWRITE))
if (flag & FWRITE && !(acc & VWRITE))
error = VOP_ACCESS(vp, VWRITE, 0, cr, NULL);
error = VOP_ACCESS(vp, VWRITE, 0, cr, NULL);
(error = VOP_ACCESS(vp, VWRITE, 0, cs->cr, NULL))) {
(VOP_ACCESS(cs->vp, VWRITE, 0, cs->cr, NULL) != 0) &&
(error = VOP_ACCESS(vp, VWRITE, 0, cr, &ct))) {
error = VOP_CREATE(dvp, nm, vap, EXCL, VWRITE, vpp, cr, 0, NULL, NULL);
error = VOP_ACCESS(vp, VWRITE, 0, cr, NULL);
if (mode & VWRITE) {
else if (vp->v_type == VDIR && (mode & VWRITE))
nfs4_access(vpi, VWRITE, 0, cr, NULL) == 0)
acc |= VWRITE;
error = VOP_ACCESS(vp, VWRITE, 0, cr, NULL);
error = VOP_ACCESS(vp, VWRITE, 0, cr, NULL);
if (mode & VWRITE) {
error = VOP_ACCESS(vp, VWRITE, 0, cr, &ct);
error = VOP_ACCESS(vp, VWRITE, 0, rp->cr, &ct);
mode = VWRITE;
mode = (at.va_mode & S_IWUSR) ? VWRITE : VREAD;
if ((mode & VWRITE) && vn_is_readonly(vp) && !IS_DEVVP(vp))
if ((mode & (VWRITE | VREAD | VEXEC)) &&
else if (vp->v_type == VDIR && (mode & VWRITE))
if (mode & VWRITE)
if (mode & (VWRITE|VEXEC))
aflag = VREAD | VWRITE;
error = pcfs_access(sdvp, VWRITE, 0, cr, ct);
if ((mode & VWRITE) && (pcp->pc_entry.pcd_attr & PCA_RDONLY))
if ((mode & VWRITE) &&
if ((mode & VWRITE) && vn_is_readonly(vp))
if ((type == PR_OBJECT && (mode & VWRITE)) ||
vmode |= VWRITE;
if (mode & (VWRITE|VEXEC))
if ((mode & VWRITE) &&
if ((mode & (VWRITE | VREAD | VEXEC)) &&
error = smbfs_access(dvp, VWRITE, 0, cr, ct);
error = smbfs_access(dvp, VWRITE|VEXEC, 0, cr, ct);
error = smbfs_access(odvp, VWRITE|VEXEC, 0, cr, ct);
error = smbfs_access(ndvp, VWRITE, 0, cr, ct);
error = smbfs_access(dvp, VWRITE, 0, cr, ct);
error = smbfs_access(dvp, VWRITE|VEXEC, 0, cr, ct);
access |= VWRITE;
if (access & VWRITE)
if (access & (VREAD | VWRITE))
if (access & VWRITE)
rc = smb_vop_access(vp, VWRITE, 0, NULL, user->u_cred);
static const int unix_perms[] = { VREAD, VWRITE, VEXEC };
error = VOP_ACCESS(vp, VREAD|VWRITE, 0, CRED(), NULL);
if (error = tmp_taccess(dir, VWRITE, cred))
if (error = tmp_taccess(dir, VEXEC|VWRITE, cred))
if ((error = tmp_taccess(toparent, VWRITE, cred)) != 0 ||
tmp_taccess(entry, VWRITE, cr) != 0))
else if ((oldtp->tn_type == VDIR) && (mode & VWRITE))
if (((error = tmp_taccess(fromparent, VWRITE, cred)) != 0) ||
error = tmp_taccess(toparent, VEXEC|VWRITE, cred);
if ((error = tmp_taccess(tp, VWRITE, cred)) != 0) {
aflag = VREAD | VWRITE;
if ((ip->i_type == VDIR) && (mode & VWRITE)) {
aflag = VREAD | VWRITE;
vap->va_mode &= ~((VREAD | VWRITE | VEXEC) >> 3);
#if IWRITE != VWRITE || IREAD != VREAD || IEXEC != VEXEC
if ((*vpp != NULL && (mode & VWRITE) && ISROFILE(*vpp)) ||
mode |= VWRITE;
if (mode & VWRITE) {
if ((np->xattr_view == XATTR_VIEW_READONLY) && (mode & VWRITE))
needed_bits |= VWRITE;
checkmode |= VWRITE;
owner, VEXEC, VWRITE|VEXEC);
if (mode & VWRITE)
VOP_ACCESS(mvp, VWRITE, 0, cr, NULL) != 0) {
else if ((error = VOP_ACCESS(vp, VWRITE, 0, CRED(), NULL)) == 0) {
if ((wantmode & VWRITE) &&
if (mode & VWRITE) {
error = unlocked_access(node, VWRITE, cr);
error = unlocked_access(node, VWRITE, cr);
if ((mode & VWRITE) && scr->cr_uid != 0 &&
VWRITE) != 0) {
if (mode & VWRITE) {
if (priv_proc_cred_perm(cr, p, &oldcred, VWRITE) != 0) {
if (!(mode & VWRITE)) {
error = VOP_ACCESS(vp, VREAD|VWRITE, 0, CRED(), NULL);
error = VOP_ACCESS(vp, VREAD|VWRITE, 0, CRED(), NULL);