Date: Wed, 26 Nov 2003 06:55:19 -0800 (PST) From: Andrew Reisse <areisse@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 43056 for review Message-ID: <200311261455.hAQEtJjk007248@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=43056 Change 43056 by areisse@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311261455.hAQEtJjk007248>