OSDN Git Service

apparmor: Switch to GFP_KERNEL where possible
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 5 Apr 2019 13:34:58 +0000 (15:34 +0200)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 20 Jun 2019 17:33:31 +0000 (10:33 -0700)
commit8ac2ca328ec9356f56d0dad3aa350d9600db951a
treeca39bf7b77517a20b29b0cedd9ad5864266847af
parentdf323337e507a0009d3db1ea25948d4c7f320d62
apparmor: Switch to GFP_KERNEL where possible

After removing preempt_disable() from get_buffers() it is possible to
replace a few GFP_ATOMIC allocations with GFP_KERNEL.

Replace GFP_ATOMIC allocations with GFP_KERNEL where the context looks
to bee preepmtible.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/domain.c
security/apparmor/file.c
security/apparmor/mount.c