Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2006 14:43:40 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 95681 for review
Message-ID:  <200604201443.k3KEheIA062313@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95681

Change 95681 by millert@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());



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