Date: Wed, 4 May 2011 14:39:43 GMT From: Efstratios Karatzas <gpf@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 192595 for review Message-ID: <201105041439.p44EdhNg033235@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@192595?ac=10 Change 192595 by gpf@gpf_desktop on 2011/05/04 14:39:15 - NFSv2 CREATE is responsible for creating special files, therefore keep track of the 'vnode type' argument Affected files ... .. //depot/projects/soc2010/gpf_audit/freebsd/src/sys/fs/nfsserver/nfs_nfsdserv.c#16 edit .. //depot/projects/soc2010/gpf_audit/freebsd/src/sys/nfsserver/nfs_serv.c#22 edit Differences ... ==== //depot/projects/soc2010/gpf_audit/freebsd/src/sys/fs/nfsserver/nfs_nfsdserv.c#16 (text+ko) ==== @@ -920,6 +920,7 @@ vtyp = IFTOVT(fxdr_unsigned(u_int32_t, sp->sa_mode)); if (vtyp == VNON) vtyp = VREG; + AUDIT_ARG_VTYPE(vtyp); NFSVNO_SETATTRVAL(&nva, type, vtyp); NFSVNO_SETATTRVAL(&nva, mode, nfstov_mode(sp->sa_mode)); ==== //depot/projects/soc2010/gpf_audit/freebsd/src/sys/nfsserver/nfs_serv.c#22 (text+ko) ==== @@ -1547,6 +1547,7 @@ vap->va_type = IFTOVT(fxdr_unsigned(u_int32_t, sp->sa_mode)); if (vap->va_type == VNON) vap->va_type = VREG; + AUDIT_ARG_VTYPE(vap->va_type); vap->va_mode = nfstov_mode(sp->sa_mode); switch (vap->va_type) { case VREG:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105041439.p44EdhNg033235>