summaryrefslogtreecommitdiffstats
path: root/kernel/rtmutex_common.h
diff options
context:
space:
mode:
authorPaul Moore <paul.moore@hp.com>2006-11-17 23:38:46 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 06:24:07 +0100
commit701a90bad99b8081a824cca52c178c8fc8f46bb2 (patch)
tree5fed88e6707e9122d7f16e4c5d8fea7c69e090ac /kernel/rtmutex_common.h
parentNetLabel: change netlbl_secattr_init() to return void (diff)
downloadlinux-701a90bad99b8081a824cca52c178c8fc8f46bb2.tar.xz
linux-701a90bad99b8081a824cca52c178c8fc8f46bb2.zip
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>
Diffstat (limited to 'kernel/rtmutex_common.h')
0 files changed, 0 insertions, 0 deletions