kernel_optimize_test/security/selinux/include
Stephen Smalley 2c3c05dbcb SELinux: allow preemption between transition permission checks
In security_get_user_sids, move the transition permission checks
outside of the section holding the policy rdlock, and use the AVC to
perform the checks, calling cond_resched after each one.  These
changes should allow preemption between the individual checks and
enable caching of the results.  It may however increase the overall
time spent in the function in some cases, particularly in the cache
miss case.

The long term fix will be to take much of this logic to userspace by
exporting additional state via selinuxfs, and ultimately deprecating
and eliminating this interface from the kernel.

Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by:  Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
2007-07-11 22:52:25 -04:00
..
av_inherit.h [SELinux]: Add support for DCCP 2006-12-02 21:22:24 -08:00
av_perm_to_string.h selinux: remove userland security class and permission definitions 2007-04-26 01:35:58 -04:00
av_permissions.h selinux: remove userland security class and permission definitions 2007-04-26 01:35:58 -04:00
avc_ss.h SELinux: export object class and permission definitions 2006-11-28 12:04:36 -05:00
avc.h SELinux: allow preemption between transition permission checks 2007-07-11 22:52:25 -04:00
class_to_string.h selinux: remove userland security class and permission definitions 2007-04-26 01:35:58 -04:00
common_perm_to_string.h
conditional.h
flask.h selinux: remove userland security class and permission definitions 2007-04-26 01:35:58 -04:00
initial_sid_to_string.h
netif.h
netlabel.h SELinux: rename selinux_netlabel.h to netlabel.h 2007-04-26 01:35:50 -04:00
objsec.h NetLabel: SELinux cleanups 2006-12-02 21:24:13 -08:00
security.h selinux: add selinuxfs structure for object class discovery 2007-07-11 22:52:20 -04:00
xfrm.h [SELINUX]: Fix 2.6.20-rc6 build when no xfrm 2007-01-26 19:03:48 -08:00