]> git.baikalelectronics.ru Git - kernel.git/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)
commit1436aba901b4663628bdbb9b0d2587cbdc4cb868
tree9aea814978791abd8c4f9a5c60de879b2811c063
parentb0c3a61597acc03c8c6ae1caed13bde3a91e94bb
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