SELinux: replace weak GFP_ATOMIC to GFP_KERNEL in avc_add_callback
authorWanlong Gao <gaowanlong@cn.fujitsu.com>
Wed, 7 Mar 2012 14:17:13 +0000 (22:17 +0800)
committerEric Paris <eparis@redhat.com>
Mon, 9 Apr 2012 16:23:07 +0000 (12:23 -0400)
commit0b36e44cc680b355f0d1b34002b2a10c9e1cae60
tree60e6a2800af2980b1b83206d2b6f6fd20baf4165
parent899838b25f063a94594b1df6e0100aea1ec57fac
SELinux: replace weak GFP_ATOMIC to GFP_KERNEL in avc_add_callback

avc_add_callback now only called from initcalls, so replace the
weak GFP_ATOMIC to GFP_KERNEL, and mark this function __init
to make a warning when not been called from initcalls.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/avc.c