PERFORCE change 162817 for review
Aditya Sarawgi
truncs at FreeBSD.org
Tue May 26 21:16:18 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=162817
Change 162817 by truncs at aditya on 2009/05/26 21:15:22
Deny setting of UF_* flags with EOPNOTSUPP.
Affected files ...
.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_vnops.c#3 edit
Differences ...
==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_vnops.c#3 (text+ko) ====
@@ -392,6 +392,11 @@
if (vap->va_flags != VNOVAL) {
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return (EROFS);
+ /*
+ * Deny setting of UF_* flags
+ */
+ if(vap->va_flags & UF_SETTABLE)
+ return (EOPNOTSUPP);
/*
* Callers may only modify the file flags on objects they
* have VADMIN rights for.
More information about the p4-projects
mailing list