From owner-p4-projects@FreeBSD.ORG  Wed Aug 31 20:34:02 2005
Return-Path: <owner-p4-projects@FreeBSD.ORG>
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id D958E16A421; Wed, 31 Aug 2005 20:34:01 +0000 (GMT)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 961FB16A420
	for <perforce@freebsd.org>; Wed, 31 Aug 2005 20:34:01 +0000 (GMT)
	(envelope-from csjp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1D2D543D46
	for <perforce@freebsd.org>; Wed, 31 Aug 2005 20:34:01 +0000 (GMT)
	(envelope-from csjp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
	by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7VKY1Ns032415
	for <perforce@freebsd.org>; Wed, 31 Aug 2005 20:34:01 GMT
	(envelope-from csjp@freebsd.org)
Received: (from perforce@localhost)
	by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7VKY0rP032410
	for perforce@freebsd.org; Wed, 31 Aug 2005 20:34:00 GMT
	(envelope-from csjp@freebsd.org)
Date: Wed, 31 Aug 2005 20:34:00 GMT
Message-Id: <200508312034.j7VKY0rP032410@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
	csjp@freebsd.org using -f
From: "Christian S.J. Peron" <csjp@FreeBSD.org>
To: Perforce Change Reviews <perforce@freebsd.org>
Cc: 
Subject: PERFORCE change 82937 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes <p4-projects.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/p4-projects>,
	<mailto:p4-projects-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/p4-projects>
List-Post: <mailto:p4-projects@freebsd.org>
List-Help: <mailto:p4-projects-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/p4-projects>,
	<mailto:p4-projects-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Aug 2005 20:34:02 -0000

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

Change 82937 by csjp@csjp_xor on 2005/08/31 20:33:54

	Rename mac_syscall_enter/exit entry points to mac_thread_syscall_enter
	and exit.
	
	Requested by:	rwatson

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/alpha/alpha/trap.c#27 edit
.. //depot/projects/trustedbsd/mac/sys/amd64/amd64/trap.c#18 edit
.. //depot/projects/trustedbsd/mac/sys/arm/arm/trap.c#8 edit
.. //depot/projects/trustedbsd/mac/sys/i386/i386/trap.c#41 edit
.. //depot/projects/trustedbsd/mac/sys/ia64/ia32/ia32_trap.c#5 edit
.. //depot/projects/trustedbsd/mac/sys/ia64/ia64/trap.c#32 edit
.. //depot/projects/trustedbsd/mac/sys/powerpc/powerpc/trap.c#21 edit
.. //depot/projects/trustedbsd/mac/sys/security/mac/mac_system.c#12 edit
.. //depot/projects/trustedbsd/mac/sys/sparc64/sparc64/trap.c#30 edit
.. //depot/projects/trustedbsd/mac/sys/sys/mac.h#281 edit
.. //depot/projects/trustedbsd/mac/sys/sys/mac_policy.h#238 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/alpha/alpha/trap.c#27 (text+ko) ====

@@ -736,10 +736,10 @@
 		PTRACESTOP_SC(p, td, S_PT_SCE);
 
 #ifdef MAC
-		error = mac_syscall_enter(td, args + hidden, code);
+		error = mac_thread_syscall_enter(td, args + hidden, code);
 		if (error == 0)
 			error = (*callp->sy_call)(td, args + hidden);
-		mac_syscall_exit(td, args + hidden, code, error);
+		mac_thread_syscall_exit(td, args + hidden, code, error);
 #else
 		error = (*callp->sy_call)(td, args + hidden);
 #endif

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

@@ -792,10 +792,10 @@
 		if ((callp->sy_narg & SYF_MPSAFE) == 0)
 			mtx_lock(&Giant);
 #ifdef MAC
-		error = mac_syscall_enter(td, argp, code);
+		error = mac_thread_syscall_enter(td, argp, code);
 		if (error == 0)
 			error = (*callp->sy_call)(td, argp);
-		mac_syscall_exit(td, argp, code, error);
+		mac_thread_syscall_exit(td, argp, code, error);
 #else
 		error = (*callp->sy_call)(td, argp);
 #endif

==== //depot/projects/trustedbsd/mac/sys/arm/arm/trap.c#8 (text+ko) ====

@@ -924,10 +924,10 @@
 		STOPEVENT(p, S_SCE, (callp->sy_narg & SYF_ARGMASK));
 		PTRACESTOP_SC(p, td, S_PT_SCE);
 #ifdef MAC
-		error = mac_syscall_enter(td, args, code);
+		error = mac_thread_syscall_enter(td, args, code);
 		if (error == 0)
 			error = (*callp->sy_call)(td, args);
-		mac_syscall_exit(td, args, code, error);
+		mac_thread_syscall_exit(td, args, code, error);
 #else
 		error = (*callp->sy_call)(td, args);
 #endif

==== //depot/projects/trustedbsd/mac/sys/i386/i386/trap.c#41 (text+ko) ====

@@ -984,10 +984,10 @@
 
 		PTRACESTOP_SC(p, td, S_PT_SCE);
 #ifdef MAC
-		error = mac_syscall_enter(td, args, code);
+		error = mac_thread_syscall_enter(td, args, code);
 		if (error == 0)
 			error = (*callp->sy_call)(td, args);
-		mac_syscall_exit(td, args, code, error);
+		mac_thread_syscall_exit(td, args, code, error);
 #else
 		error = (*callp->sy_call)(td, args);
 #endif

==== //depot/projects/trustedbsd/mac/sys/ia64/ia32/ia32_trap.c#5 (text+ko) ====

@@ -127,10 +127,10 @@
 		STOPEVENT(p, S_SCE, narg);
 
 #ifdef MAC
-		eror = mac_syscall_enter(td, args64, code);
+		eror = mac_thread_syscall_enter(td, args64, code);
 		if (error == 0)
 			error = (*callp->sy_call)(td, args64);
-		mac_syscall_exit(td, args64, code, error);
+		mac_thread_syscall_exit(td, args64, code, error);
 #else
 		error = (*callp->sy_call)(td, args64);
 #endif

==== //depot/projects/trustedbsd/mac/sys/ia64/ia64/trap.c#32 (text+ko) ====

@@ -1003,10 +1003,10 @@
 	if ((callp->sy_narg & SYF_MPSAFE) == 0)
 		mtx_lock(&Giant);
 #ifdef MAC
-	error = mac_syscall_enter(td, args, code);
+	error = mac_thread_syscall_enter(td, args, code);
 	if (error == 0)
 		error = (*callp->sy_call)(td, args);
-	mac_syscall_exit(td, args, code, error);
+	mac_thread_syscall_exit(td, args, code, error);
 #else
 	error = (*callp->sy_call)(td, args);
 #endif

==== //depot/projects/trustedbsd/mac/sys/powerpc/powerpc/trap.c#21 (text+ko) ====

@@ -417,10 +417,10 @@
 		STOPEVENT(p, S_SCE, narg);
 
 #ifdef MAC
-		error = mac_syscall_enter(td, params, code);
+		error = mac_thread_syscall_enter(td, params, code);
 		if (error == 0)
 			error = (*callp->sy_call)(td, params);
-		mac_syscall_exit(td, params, code, error);
+		mac_thread_syscall_exit(td, params, code, error);
 #else
 		error = (*callp->sy_call)(td, params);
 #endif

==== //depot/projects/trustedbsd/mac/sys/security/mac/mac_system.c#12 (text+ko) ====

@@ -272,21 +272,21 @@
 }
 
 int
-mac_syscall_enter(struct thread *td, int *args, int code)
+mac_thread_syscall_enter(struct thread *td, int *args, int code)
 {
 	int error;
 
 	if (!mac_enforce_syscall)
 		return (0);
-	MAC_CHECK(syscall_enter, td, args, code);
+	MAC_CHECK(thread_syscall_enter, td, args, code);
 	return (error);
 }
 
 void
-mac_syscall_exit(struct thread *td, int *args, int code, int errcode)
+mac_thread_syscall_exit(struct thread *td, int *args, int code, int errcode)
 {
 
 	if (!mac_enforce_syscall)
 		return;
-	MAC_PERFORM(syscall_exit, td, args, code, errcode);
+	MAC_PERFORM(thread_syscall_exit, td, args, code, errcode);
 }

==== //depot/projects/trustedbsd/mac/sys/sparc64/sparc64/trap.c#30 (text+ko) ====

@@ -591,10 +591,10 @@
 		PTRACESTOP_SC(p, td, S_PT_SCE);
 
 #ifdef MAC
-		error = mac_syscall_enter(td, argp, code);
+		error = mac_thread_syscall_enter(td, argp, code);
 		if (error == 0)
 			error = (*callp->sy_call)(td, argp);
-		mac_syscall_exit(td, argp, code, error);
+		mac_thread_syscall_exit(td, argp, code, error);
 #else
 		error = (*callp->sy_call)(td, argp);
 #endif

==== //depot/projects/trustedbsd/mac/sys/sys/mac.h#281 (text+ko) ====

@@ -411,8 +411,8 @@
 int	mac_check_system_swapoff(struct ucred *cred, struct vnode *vp);
 int	mac_check_system_sysctl(struct ucred *cred, struct sysctl_oid *oidp,
 	    void *arg1, int arg2, struct sysctl_req *req);
-int	mac_syscall_enter(struct thread *td, int *args, int code);
-void	mac_syscall_exit(struct thread *td, int *args, int code,
+int	mac_thread_syscall_enter(struct thread *td, int *args, int code);
+void	mac_thread_syscall_exit(struct thread *td, int *args, int code,
 	    int errcode);
 int	mac_check_vnode_access(struct ucred *cred, struct vnode *vp,
 	    int acc_mode);

==== //depot/projects/trustedbsd/mac/sys/sys/mac_policy.h#238 (text+ko) ====

@@ -494,8 +494,8 @@
 	int	(*mpo_check_system_sysctl)(struct ucred *cred,
 		    struct sysctl_oid *oidp, void *arg1, int arg2,
 		    struct sysctl_req *req);
-	int	(*mpo_syscall_enter)(struct thread *td, int *args, int code);
-	void	(*mpo_syscall_exit)(struct thread *td, int *args, int code,
+	int	(*mpo_thread_syscall_enter)(struct thread *td, int *args, int code);
+	void	(*mpo_thread_syscall_exit)(struct thread *td, int *args, int code,
 		    int error);
 	int	(*mpo_check_vnode_access)(struct ucred *cred,
 		    struct vnode *vp, struct label *label, int acc_mode);