Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2002 18:15:23 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 12678 for review
Message-ID:  <200206110115.g5B1FNZ77304@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12678

Change 12678 by rwatson@rwatson_paprika on 2002/06/10 18:14:48

	Add some comments in places we'll need checks in the future.

Affected files ...

... //depot/projects/trustedbsd/mac/sys/kern/vfs_syscalls.c#44 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/vfs_syscalls.c#44 (text+ko) ====

@@ -1655,6 +1655,9 @@
 		return (error);
 	NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE,
 	    SCARG(uap, path), td);
+#ifdef MAC
+	/* XXXMAC: MAC check for chroot here. */
+#endif
 	if ((error = change_dir(&nd, td)) != 0)
 		return (error);
 	NDFREE(&nd, NDF_ONLY_PNBUF);
@@ -2232,6 +2235,11 @@
 			return (error);
 		goto restart;
 	}
+#ifdef MAC
+	/*
+	 * XXXMAC: Need some or another MAC check here.
+	 */
+#endif
 	VOP_LEASE(nd.ni_dvp, td, td->td_ucred, LEASE_WRITE);
 	error = VOP_WHITEOUT(nd.ni_dvp, &nd.ni_cnd, DELETE);
 	NDFREE(&nd, NDF_ONLY_PNBUF);
@@ -2873,6 +2881,11 @@
 		return (error);
 	NDFREE(&nd, NDF_ONLY_PNBUF);
 	vp = nd.ni_vp;
+#ifdef MAC
+	/*
+	 * XXXMAC: need some or another MAC check here.
+	 */
+#endif
 	if (vp->v_type != VLNK)
 		error = EINVAL;
 	else {

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206110115.g5B1FNZ77304>