PERFORCE change 111015 for review
Todd Miller
millert at FreeBSD.org
Mon Dec 4 08:45:00 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=111015
Change 111015 by millert at 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();
More information about the trustedbsd-cvs
mailing list