Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 14:13:31 -0800 (PST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 8215 for review
Message-ID:  <200203222213.g2MMDVw34831@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=8215

Change 8215 by rwatson@rwatson_curry on 2002/03/22 14:13:21

	Move policy field offset above LIST_ENTRY() in mpc so that
	we don't have to explicitly initialize the list entry.  In the
	current code, this actually generated an error because the
	structure was being set to NULL rather than the elements of
	the list.  Since we don't want to see inside opaque LIST_ENTRY,
	leave it at the end so it's implicitly initialized to 0's.

Affected files ...

... //depot/projects/trustedbsd/mac/sys/sys/mac_policy.h#51 edit

Differences ...

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

@@ -205,8 +205,8 @@
 	char				*mpc_name;	/* policy name */
 	char				*mpc_fullname;	/* policy full name */
 	struct mac_policy_ops		*mpc_ops;	/* policy operations */
+	int				 mpc_field_off; /* security field */
 	LIST_ENTRY(mac_policy_conf)	 mpc_list;	/* global list */
-	int				 mpc_field_off; /* security field */
 };
 
 #define	MAC_POLICY_SET(mpops, mpname, mpfullname, privdata_wanted)	\
@@ -214,7 +214,6 @@
 		#mpname,						\
 		mpfullname,						\
 		&mpops,							\
-		NULL,							\
 		privdata_wanted						\
 	};								\
 	static moduledata_t mpname ## _mod = {				\

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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