From: Paul Moore Date: Fri, 17 Nov 2006 22:38:46 +0000 (-0500) Subject: NetLabel: make netlbl_lsm_secattr struct easier/quicker to understand X-Git-Tag: v2.6.20-rc1~34^2~40^2~280 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=701a90bad99b8081a824cca52c178c8fc8f46bb2;p=pandora-kernel.git 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 Signed-off-by: James Morris --- Reading git-diff-tree failed