acrn-kernel/security/selinux/ss
Parag Warudkar 9883a13c72 [PATCH] selinux: fix selinux_netlbl_inode_permission() locking
do not call a sleeping lock API in an RCU read section.
lock_sock_nested can sleep, its BH counterpart doesn't.
selinux_netlbl_inode_permission() needs to use the BH counterpart
unconditionally.

Compile tested.

From: Ingo Molnar <mingo@elte.hu>

added BH disabling, because this function can be called from non-atomic
contexts too, so a naked bh_lock_sock() would be deadlock-prone.

Boot-tested the resulting kernel.

Signed-off-by: Parag Warudkar <paragw@paragw.zapto.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2007-01-02 13:32:21 -08:00
..
Makefile
avtab.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
avtab.h
conditional.c
conditional.h
constraint.h
context.h
ebitmap.c NetLabel: convert to an extensibile/sparse category bitmap 2006-12-02 21:31:36 -08:00
ebitmap.h NetLabel: convert to an extensibile/sparse category bitmap 2006-12-02 21:31:36 -08:00
hashtab.c SELinux: ensure keys constant in hashtab_search 2006-11-28 12:04:37 -05:00
hashtab.h SELinux: ensure keys constant in hashtab_search 2006-11-28 12:04:37 -05:00
mls.c NetLabel: convert to an extensibile/sparse category bitmap 2006-12-02 21:31:36 -08:00
mls.h NetLabel: convert to an extensibile/sparse category bitmap 2006-12-02 21:31:36 -08:00
mls_types.h
policydb.c Rename class_destroy to avoid namespace conflicts. 2006-12-02 21:31:39 -08:00
policydb.h [PATCH] selinux: add support for range transitions on object classes 2006-09-26 08:48:52 -07:00
services.c [PATCH] selinux: fix selinux_netlbl_inode_permission() locking 2007-01-02 13:32:21 -08:00
services.h
sidtab.c
sidtab.h
symtab.c SELinux: ensure keys constant in hashtab_search 2006-11-28 12:04:37 -05:00
symtab.h