PERFORCE change 15844 for review

Robert Watson rwatson at freebsd.org
Mon Aug 12 01:47:04 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15844

Change 15844 by rwatson at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list