]> err.no Git - linux-2.6/commit
SELinux fixups needed for preemptable RCU from -rt
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 22 Apr 2008 01:12:33 +0000 (18:12 -0700)
committerJames Morris <jmorris@namei.org>
Tue, 22 Apr 2008 05:37:23 +0000 (15:37 +1000)
commit618442509128fe4514be94de70ce54075cd9a706
tree9aea814978791abd8c4f9a5c60de879b2811c063
parent0f5e64200f20fc8f5b759c4010082f577ab0af3f
SELinux fixups needed for preemptable RCU from -rt

The attached patch needs to move from -rt to mainline given preemptable RCU.
This patch fixes SELinux code that implicitly assumes that disabling
preemption prevents an RCU grace period from completing, an assumption that
is valid for Classic RCU, but not necessarily for preemptable RCU.  Explicit
rcu_read_lock() calls are thus added.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/avc.c
security/selinux/netif.c