apparmor: reduce rcu_read_lock scope for aa_file_perm mediation
authorJohn Johansen <john.johansen@canonical.com>
Sat, 14 Sep 2019 05:24:23 +0000 (22:24 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 23 Nov 2019 00:40:21 +0000 (16:40 -0800)
commitbce4e7e9c45ef97ac1e30b9cb4adc25b5b5a7cfa
tree6370690d5d2b83b3f12cc5d441b60947a7cfdf64
parent8f21a62475258ba07b032f5006fb26fd6501f314
apparmor: reduce rcu_read_lock scope for aa_file_perm mediation

Now that the buffers allocation has changed and no longer needs
the full mediation under an rcu_read_lock, reduce the rcu_read_lock
scope to only where it is necessary.

Fixes: df323337e507 ("apparmor: Use a memory pool instead per-CPU caches")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/file.c