[apparmor] [PATCH] add caching tests to build

Kees Cook kees at ubuntu.com
Tue Sep 14 19:03:29 BST 2010


This adds the caching tests to the build, which requires effectively
reverting revno 1471 and fixes the root-cause (load_policy complaining that
the kernel file descriptor isn't open when kernel_load is false).

This also fixes the caching test to no longer need root (writing a cache
isn't privileged -- just access the kernel is, since the base directory can
be relocated).

Updates the caching test to slow down when on a non-nanosecond resolution
filesystem (the buildds).

Also drops an unused variable from parser_interface.c that was generating
warnings, and adds a cache timestamp debug output.

Probably don't need this for 2.5.1, but it makes testing the other caching
changes easier.

-Kees

-- 
Kees Cook
Ubuntu Security Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: caching-test.patch
Type: text/x-diff
Size: 5136 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/apparmor/attachments/20100914/c7c1bc69/attachment.patch 


More information about the AppArmor mailing list