Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2002 13:33:08 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 14631 for review
Message-ID:  <200207212033.g6LKX8tr004797@freefall.freebsd.org>

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

Change 14631 by rwatson@rwatson_curry on 2002/07/21 13:32:28

	Further diff reduction and simplification against -CURRENT.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/vfs_lookup.c#18 edit

Differences ...

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

@@ -181,8 +181,7 @@
 		/*
 		 * Check for symbolic link
 		 */
-		if (cnp->cn_flags & ISSYMLINK) {
-		} else {
+		if ((cnp->cn_flags & ISSYMLINK) == 0) {
 			if ((cnp->cn_flags & (SAVENAME | SAVESTART)) == 0)
 				uma_zfree(namei_zone, cnp->cn_pnbuf);
 			else
@@ -456,14 +455,10 @@
 	 */
 unionlookup:
 #ifdef MAC
-	/*
-	 * Execute MAC lookup policy check here, in the heart of all
-	 * "sanctioned" lookup operations.
-	 */
 	error = mac_cred_check_lookup_vnode(td->td_ucred, dp, cnp);
 	if (error)
 		goto bad;
-#endif /* MAC */
+#endif
 	ndp->ni_dvp = dp;
 	ndp->ni_vp = NULL;
 	cnp->cn_flags &= ~PDIRUNLOCK;

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?200207212033.g6LKX8tr004797>