<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/security/apparmor/policy_unpack_test.c, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-01-09T23:27:43Z</updated>
<entry>
<title>apparmor: add AppArmor KUnit tests for policy unpack</title>
<updated>2020-01-09T23:27:43Z</updated>
<author>
<name>Mike Salvatore</name>
</author>
<published>2019-11-06T00:43:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d944bcd4e731ab7bfe8d01a7041ea0ebdc090f1'/>
<id>urn:sha1:4d944bcd4e731ab7bfe8d01a7041ea0ebdc090f1</id>
<content type='text'>
Add KUnit tests to test AppArmor unpacking of userspace policies.
AppArmor uses a serialized binary format for loading policies. To find
policy format documentation see
Documentation/admin-guide/LSM/apparmor.rst.

In order to write the tests against the policy unpacking code, some
static functions needed to be exposed for testing purposes. One of the
goals of this patch is to establish a pattern for which testing these
kinds of functions should be done in the future.

Signed-off-by: Brendan Higgins &lt;brendanhiggins@google.com&gt;
Signed-off-by: Mike Salvatore &lt;mike.salvatore@canonical.com&gt;
Acked-by: John Johansen &lt;john.johansen@canonical.com&gt;
Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
</feed>
