PERFORCE change 15090 for review

Robert Watson rwatson at freebsd.org
Mon Jul 29 02:28:01 GMT 2002


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

Change 15090 by rwatson at rwatson_paprika on 2002/07/28 19:27:01

	Use the entry point definition order from mac_policy.h for
	the registration order during policy registration.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#209 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#209 (text+ko) ====

@@ -498,6 +498,102 @@
 			mpc->mpc_ops->mpo_init =
 			    mpe->mpe_function;
 			break;
+		case MAC_INIT_BPFDESC:
+			mpc->mpc_ops->mpo_init_bpfdesc =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_CRED:
+			mpc->mpc_ops->mpo_init_cred =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_DEVFSDIRENT:
+			mpc->mpc_ops->mpo_init_devfsdirent =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_IFNET:
+			mpc->mpc_ops->mpo_init_ifnet =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_IPQ:
+			mpc->mpc_ops->mpo_init_ipq =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_MBUF:
+			mpc->mpc_ops->mpo_init_mbuf =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_MOUNT:
+			mpc->mpc_ops->mpo_init_mount =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_PIPE:
+			mpc->mpc_ops->mpo_init_pipe =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_SOCKET:
+			mpc->mpc_ops->mpo_init_socket =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_TEMP:
+			mpc->mpc_ops->mpo_init_temp =
+			    mpe->mpe_function;
+			break;
+		case MAC_INIT_VNODE:
+			mpc->mpc_ops->mpo_init_vnode =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_BPFDESC:
+			mpc->mpc_ops->mpo_destroy_bpfdesc =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_CRED:
+			mpc->mpc_ops->mpo_destroy_cred =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_DEVFSDIRENT:
+			mpc->mpc_ops->mpo_destroy_devfsdirent =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_IFNET:
+			mpc->mpc_ops->mpo_destroy_ifnet =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_IPQ:
+			mpc->mpc_ops->mpo_destroy_ipq =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_MBUF:
+			mpc->mpc_ops->mpo_destroy_mbuf =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_MOUNT:
+			mpc->mpc_ops->mpo_destroy_mount =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_PIPE:
+			mpc->mpc_ops->mpo_destroy_pipe =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_SOCKET:
+			mpc->mpc_ops->mpo_destroy_socket =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_TEMP:
+			mpc->mpc_ops->mpo_destroy_temp =
+			    mpe->mpe_function;
+			break;
+		case MAC_DESTROY_VNODE:
+			mpc->mpc_ops->mpo_destroy_vnode =
+			    mpe->mpe_function;
+			break;
+		case MAC_EXTERNALIZE:
+			mpc->mpc_ops->mpo_externalize =
+			    mpe->mpe_function;
+			break;
+		case MAC_INTERNALIZE:
+			mpc->mpc_ops->mpo_internalize =
+			    mpe->mpe_function;
+			break;
 		case MAC_CREATE_DEVFS_DEVICE:
 			mpc->mpc_ops->mpo_create_devfs_device =
 			    mpe->mpe_function;
@@ -836,102 +932,6 @@
 			mpc->mpc_ops->mpo_check_vnode_stat =
 			    mpe->mpe_function;
 			break;
-		case MAC_INIT_BPFDESC:
-			mpc->mpc_ops->mpo_init_bpfdesc =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_CRED:
-			mpc->mpc_ops->mpo_init_cred =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_DEVFSDIRENT:
-			mpc->mpc_ops->mpo_init_devfsdirent =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_IFNET:
-			mpc->mpc_ops->mpo_init_ifnet =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_IPQ:
-			mpc->mpc_ops->mpo_init_ipq =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_MBUF:
-			mpc->mpc_ops->mpo_init_mbuf =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_MOUNT:
-			mpc->mpc_ops->mpo_init_mount =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_PIPE:
-			mpc->mpc_ops->mpo_init_pipe =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_SOCKET:
-			mpc->mpc_ops->mpo_init_socket =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_TEMP:
-			mpc->mpc_ops->mpo_init_temp =
-			    mpe->mpe_function;
-			break;
-		case MAC_INIT_VNODE:
-			mpc->mpc_ops->mpo_init_vnode =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_BPFDESC:
-			mpc->mpc_ops->mpo_destroy_bpfdesc =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_CRED:
-			mpc->mpc_ops->mpo_destroy_cred =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_DEVFSDIRENT:
-			mpc->mpc_ops->mpo_destroy_devfsdirent =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_IFNET:
-			mpc->mpc_ops->mpo_destroy_ifnet =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_IPQ:
-			mpc->mpc_ops->mpo_destroy_ipq =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_MBUF:
-			mpc->mpc_ops->mpo_destroy_mbuf =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_MOUNT:
-			mpc->mpc_ops->mpo_destroy_mount =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_PIPE:
-			mpc->mpc_ops->mpo_destroy_pipe =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_SOCKET:
-			mpc->mpc_ops->mpo_destroy_socket =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_TEMP:
-			mpc->mpc_ops->mpo_destroy_temp =
-			    mpe->mpe_function;
-			break;
-		case MAC_DESTROY_VNODE:
-			mpc->mpc_ops->mpo_destroy_vnode =
-			    mpe->mpe_function;
-			break;
-		case MAC_EXTERNALIZE:
-			mpc->mpc_ops->mpo_externalize =
-			    mpe->mpe_function;
-			break;
-		case MAC_INTERNALIZE:
-			mpc->mpc_ops->mpo_internalize =
-			    mpe->mpe_function;
-			break;
 /*
 		default:
 			printf("MAC policy `%s': unknown operation %d\n",
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