diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2007-06-07 21:34:10 +0200 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2007-07-12 04:52:25 +0200 |
commit | 2c3c05dbcbc7b9d71549fe0e2b249f10f5a66518 (patch) | |
tree | bab75df9fafc435f3370a6d773d3284716347249 /security/dummy.c | |
parent | selinux: introduce schedule points in policydb_destroy() (diff) | |
download | linux-2c3c05dbcbc7b9d71549fe0e2b249f10f5a66518.tar.xz linux-2c3c05dbcbc7b9d71549fe0e2b249f10f5a66518.zip |
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>
Diffstat (limited to 'security/dummy.c')
0 files changed, 0 insertions, 0 deletions