apparmor: add the ability to report a sha1 hash of loaded policy
authorJohn Johansen <john.johansen@canonical.com>
Wed, 14 Aug 2013 18:27:36 +0000 (11:27 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 14 Aug 2013 18:42:08 +0000 (11:42 -0700)
commitf8eb8a1324e81927b2c64823b2fc38386efd3fef
tree78ef80523807aeb5b084b29f8b698601c71292b2
parent84f1f787421cd83bb7dfb34d584586f6a5fe7baa
apparmor: add the ability to report a sha1 hash of loaded policy

Provide userspace the ability to introspect a sha1 hash value for each
profile currently loaded.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
security/apparmor/Kconfig
security/apparmor/Makefile
security/apparmor/apparmorfs.c
security/apparmor/crypto.c [new file with mode: 0644]
security/apparmor/include/apparmorfs.h
security/apparmor/include/crypto.h [new file with mode: 0644]
security/apparmor/include/policy.h
security/apparmor/policy_unpack.c