PERFORCE change 95681 for review

Todd Miller millert at FreeBSD.org
Thu Apr 20 14:43:55 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=95681

Change 95681 by millert at millert_g5tower on 2006/04/20 14:42:40

	Use proc_has_security() not cred_has_security().

Affected files ...

.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd_syscall.c#12 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd_syscall.c#12 (text+ko) ====

@@ -1,6 +1,6 @@
 /*-
  * Copyright (c) 2002 Networks Associates Technology, Inc.
- * Copyright (c) 2005, 2006 SPARTA, Inc.
+ * Copyright (c) 2005-2006 SPARTA, Inc.
  * All rights reserved.
  *
  * This software was developed for the FreeBSD Project by NAI Labs, the
@@ -84,7 +84,7 @@
 	void *kdata;
 	int rc;
 	
-	rc = cred_has_security(td->p_ucred, SECURITY__LOAD_POLICY);
+	rc = proc_has_security(td, SECURITY__LOAD_POLICY);
 	if (rc)
 		return (rc);
 
@@ -362,7 +362,7 @@
 	{
 		char *str;
 
-		error = cred_has_security(td->p_ucred, SECURITY__SETBOOL);
+		error = proc_has_security(td, SECURITY__SETBOOL);
 		if (error)
 			return (error);
 
@@ -383,7 +383,7 @@
 	}
 
 	case SEBSDCALL_COMMIT_BOOLS:
-		error = cred_has_security(td->p_ucred, SECURITY__SETBOOL);
+		error = proc_has_security(td, SECURITY__SETBOOL);
 		if (error)
 			return (error);
 		return (security_commit_pending_bools());


More information about the trustedbsd-cvs mailing list