Paul Moore 701a90bad9 NetLabel: make netlbl_lsm_secattr struct easier/quicker to understand
The existing netlbl_lsm_secattr struct required the LSM to check all of the
fields to determine if any security attributes were present resulting in a lot
of work in the common case of no attributes.  This patch adds a 'flags' field
which is used to indicate which attributes are present in the structure; this
should allow the LSM to do a quick comparison to determine if the structure
holds any security attributes.

Example:

 if (netlbl_lsm_secattr->flags)
	/* security attributes present */
 else
	/* NO security attributes present */

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
2006-12-02 21:24:07 -08:00
..
2006-12-02 21:22:48 -08:00
2006-12-02 21:21:47 -08:00
2006-12-02 21:21:08 -08:00
2006-12-02 21:22:55 -08:00
2005-08-29 15:32:25 -07:00
2006-09-22 14:54:40 -07:00
2006-09-28 18:02:58 -07:00
2005-04-16 15:20:36 -07:00
2006-09-28 18:01:06 -07:00
2005-04-16 15:20:36 -07:00
2006-12-02 21:23:41 -08:00
2006-12-02 21:22:27 -08:00
2006-11-05 14:11:25 -08:00
2006-03-23 07:12:57 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-12-02 21:21:23 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-22 07:57:21 -03:00
2006-03-20 22:59:36 -08:00
2006-12-02 21:22:52 -08:00
2005-08-29 16:01:32 -07:00
2005-08-29 15:32:25 -07:00
2006-09-28 18:02:10 -07:00
2006-06-30 14:12:10 -07:00