Bug #1894 ยป 0001-tmpfs-Correct-checking-of-VWRITE.patch
sys/vfs/tmpfs/tmpfs_vnops.c | ||
---|---|---|
case VLNK:
|
||
/* FALLTHROUGH */
|
||
case VREG:
|
||
if (VWRITE && vp->v_mount->mnt_flag & MNT_RDONLY) {
|
||
if ((v->a_mode & VWRITE) && vp->v_mount->mnt_flag & MNT_RDONLY) {
|
||
error = EROFS;
|
||
goto out;
|
||
}
|
||
... | ... | |
goto out;
|
||
}
|
||
if (VWRITE && node->tn_flags & IMMUTABLE) {
|
||
if ((v->a_mode & VWRITE) && node->tn_flags & IMMUTABLE) {
|
||
error = EPERM;
|
||
goto out;
|
||
}
|