diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2019-04-05 15:34:58 +0200 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2019-06-20 19:33:31 +0200 |
commit | 8ac2ca328ec9356f56d0dad3aa350d9600db951a (patch) | |
tree | ca39bf7b77517a20b29b0cedd9ad5864266847af /security/apparmor/file.c | |
parent | apparmor: Use a memory pool instead per-CPU caches (diff) | |
download | linux-8ac2ca328ec9356f56d0dad3aa350d9600db951a.tar.xz linux-8ac2ca328ec9356f56d0dad3aa350d9600db951a.zip |
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>
Diffstat (limited to 'security/apparmor/file.c')
-rw-r--r-- | security/apparmor/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/file.c b/security/apparmor/file.c index 7b424e73a8c7..ab56e1994b01 100644 --- a/security/apparmor/file.c +++ b/security/apparmor/file.c @@ -80,7 +80,7 @@ static void file_audit_cb(struct audit_buffer *ab, void *va) if (aad(sa)->peer) { audit_log_format(ab, " target="); aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, - FLAG_VIEW_SUBNS, GFP_ATOMIC); + FLAG_VIEW_SUBNS, GFP_KERNEL); } else if (aad(sa)->fs.target) { audit_log_format(ab, " target="); audit_log_untrustedstring(ab, aad(sa)->fs.target); |