PERFORCE change 192595 for review

Efstratios Karatzas gpf at FreeBSD.org
Wed May 4 14:39:44 UTC 2011


http://p4web.freebsd.org/@@192595?ac=10

Change 192595 by gpf at 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:


More information about the p4-projects mailing list