apparmor: improve get_buffers macro by using get_cpu_ptr
authorJohn Johansen <john.johansen@canonical.com>
Fri, 4 May 2018 09:18:07 +0000 (02:18 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 7 Jun 2018 08:49:21 +0000 (01:49 -0700)
commit38125c2c2beb3c770d8fcdbcd846bd95938866d3
treef40478007c4c3350f5bd83ae94931c5b98de513e
parent52e7128ebbdd7b05ba8615efbe410e88a5925a1d
apparmor: improve get_buffers macro by using get_cpu_ptr

Refactor get_buffers so the cpu_ptr can be obtained in the outer
layer, instead of inside the macro.

This also enables us to cleanup the code and use get_cpu_ptr,
to handle the preempt_disable()

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
security/apparmor/include/path.h