mirror of
https://github.com/opnsense/src.git
synced 2026-03-19 09:13:43 -04:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue