Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2002 18:47:04 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 15844 for review
Message-ID:  <200208120147.g7C1l4Tw005278@freefall.freebsd.org>

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

Change 15844 by rwatson@rwatson_paprika on 2002/08/11 18:46:06

	Sync MAC readdir() checks to the main tree: use thread credentials
	not process credentials (for locking and consistency reasons),
	style sync, etc.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/i386/ibcs2/ibcs2_misc.c#8 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/i386/ibcs2/ibcs2_misc.c#8 (text+ko) ====

@@ -352,10 +352,11 @@
 	}
 
 #ifdef MAC
-	error = mac_check_vnode_readdir(td->td_proc->p_ucred, vp);
+	error = mac_check_vnode_readdir(td->td_ucred, vp);
 	if (error)
 		goto out;
-#endif /* MAC */
+#endif
+
 	/*
 	 * First we read into the malloc'ed buffer, then
 	 * we massage it into user space, one record at a time.
@@ -512,10 +513,11 @@
 	}
 
 #ifdef MAC
-	error = mac_check_vnode_readdir(td->td_proc->p_ucred, vp);
+	error = mac_check_vnode_readdir(td->td_ucred, vp);
 	if (error)
 		goto out;
-#endif /* MAC */
+#endif
+
 	/*
 	 * First we read into the malloc'ed buffer, then
 	 * we massage it into user space, one record at a time.

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?200208120147.g7C1l4Tw005278>