Date: Mon, 4 Dec 2006 16:33:30 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 111015 for review Message-ID: <200612041633.kB4GXU3s058484@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=111015 Change 111015 by millert@millert_g5tower on 2006/12/04 16:32:52 Add missing check for read-only filesystem in mac_vnop_setxattr() and mac_vnop_removexattr(). Affected files ... .. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/security/mac_vfs_subr.c#8 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/security/mac_vfs_subr.c#8 (text+ko) ==== @@ -156,6 +156,9 @@ uio_t auio; int error; + if (vfs_isrdonly(vp->v_mount)) + return (EROFS); + context.vc_proc = current_proc(); context.vc_ucred = kauth_cred_get(); auio = uio_createwithbuffer(1, 0, UIO_SYSSPACE, UIO_WRITE, @@ -198,6 +201,9 @@ struct vfs_context context; int error; + if (vfs_isrdonly(vp->v_mount)) + return (EROFS); + context.vc_proc = current_proc(); context.vc_ucred = kauth_cred_get();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612041633.kB4GXU3s058484>