apparmor: allow policydb to be used as the file dfa
authorJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 08:42:41 +0000 (00:42 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 09:18:33 +0000 (01:18 -0800)
commit6604d4c1c1a65d3d1a6a56291d96516d1e9b7041
tree35db647541b41867c4031e986d510563c0cd160a
parent293a4886f93f1d4f01ef2642b81c2509a5376ce5
apparmor: allow policydb to be used as the file dfa

Newer policy will combine the file and policydb dfas, allowing for
better optimizations. However to support older policy we need to
keep the ability to address the "file" dfa separately. So dup
the policydb as if it is the file dfa and set the appropriate start
state.

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