Add a check for unsupported file flags to ufs_setattr().
Discussed with: bde MFC after: 2 weeks
This commit is contained in:
parent
07b6b55dce
commit
63dfd849a1
@ -526,6 +526,10 @@ ufs_setattr(ap)
|
||||
return (EINVAL);
|
||||
}
|
||||
if (vap->va_flags != VNOVAL) {
|
||||
if ((vap->va_flags & ~(UF_NODUMP | UF_IMMUTABLE | UF_APPEND |
|
||||
UF_OPAQUE | UF_NOUNLINK | SF_ARCHIVED | SF_IMMUTABLE |
|
||||
SF_APPEND | SF_NOUNLINK | SF_SNAPSHOT)) != 0)
|
||||
return (EOPNOTSUPP);
|
||||
if (vp->v_mount->mnt_flag & MNT_RDONLY)
|
||||
return (EROFS);
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user