PERFORCE change 43056 for review
Andrew Reisse
areisse at FreeBSD.org
Wed Nov 26 14:55:19 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=43056
Change 43056 by areisse at areisse_ibook on 2003/11/26 06:55:15
setattrlist() needs a mac check. (getattrlist() should have one also,
but preventing calls to it greatly confuses the finder)
Affected files ...
.. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/vfs/vfs_syscalls.c#13 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/vfs/vfs_syscalls.c#13 (text+ko) ====
@@ -3444,6 +3444,16 @@
if (error = namei(&nd))
return (error);
+#ifdef MAC
+ /* XXX: does not pass mode! */
+ error = mac_check_vnode_setmode(p->p_ucred, nd.ni_vp, 0644);
+ if (error)
+ {
+ vput (nd.ni_vp);
+ return error;
+ }
+#endif
+
/* Set up the UIO structure for use by the vfs routine */
aiov.iov_base = uap->attributeBuffer;
aiov.iov_len = uap->bufferSize;
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list