apparmor: rework file permission to cache file access in file->ctx
authorJohn Johansen <john.johansen@canonical.com>
Fri, 9 Jun 2017 23:19:02 +0000 (16:19 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 11 Jun 2017 00:11:44 +0000 (17:11 -0700)
commit496c93196654d3e604013d750b7047886af14506
tree37c3a7e09e82bf37664476a371f9956d46d52bb5
parent8014370f1257619226b79cb6de8e28563fbbc070
apparmor: rework file permission to cache file access in file->ctx

This is a temporary step, towards using the file->ctx for delegation,
and also helps speed up file queries, until the permission lookup
cache is introduced.

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