1
0
Fork 0
alistair23-linux/net/netlabel
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
..
Kconfig [NETLABEL]: Fix build failure. 2006-11-05 16:44:06 -08:00
Makefile [NetLabel]: core NetLabel subsystem 2006-09-22 14:53:34 -07:00
netlabel_cipso_v4.c [GENL]: Add genlmsg_put_reply() to simplify building reply headers 2006-12-02 21:22:42 -08:00
netlabel_cipso_v4.h [NetLabel]: rework the Netlink attribute handling (part 2) 2006-09-25 15:56:37 -07:00
netlabel_domainhash.c [NetLabel]: audit fixups due to delayed feedback 2006-09-29 17:05:05 -07:00
netlabel_domainhash.h [NetLabel]: audit fixups due to delayed feedback 2006-09-29 17:05:05 -07:00
netlabel_kapi.c NetLabel: make netlbl_lsm_secattr struct easier/quicker to understand 2006-12-02 21:24:07 -08:00
netlabel_mgmt.c [GENL]: Add genlmsg_put_reply() to simplify building reply headers 2006-12-02 21:22:42 -08:00
netlabel_mgmt.h [NetLabel]: rework the Netlink attribute handling (part 2) 2006-09-25 15:56:37 -07:00
netlabel_unlabeled.c NetLabel: convert the unlabeled accept flag to use RCU 2006-12-02 21:24:05 -08:00
netlabel_unlabeled.h [NetLabel]: rework the Netlink attribute handling (part 2) 2006-09-25 15:56:37 -07:00
netlabel_user.c [NetLabel]: audit fixups due to delayed feedback 2006-09-29 17:05:05 -07:00
netlabel_user.h [GENL]: Add genlmsg_put_reply() to simplify building reply headers 2006-12-02 21:22:42 -08:00