apparmor: Move path lookup to using preallocated buffers
authorJohn Johansen <john.johansen@canonical.com>
Tue, 23 May 2017 10:25:14 +0000 (03:25 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 8 Jun 2017 18:29:34 +0000 (11:29 -0700)
commit4227c333f65cddc6c2f048e5b67cfe796b9df9a6
tree4deee8d16246bc879036da19642451b8e7cdcde0
parent72c8a768641dc6ee8d1d9dcebd51bbec2817459b
apparmor: Move path lookup to using preallocated buffers

Dynamically allocating buffers is problematic and is an extra layer
that is a potntial point of failure and can slow down mediation.
Change path lookup to use the preallocated per cpu buffers.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/domain.c
security/apparmor/file.c
security/apparmor/include/path.h
security/apparmor/path.c