apparmor/changehat
Steve Beattie 1a008da295 mod_apparmor: fix AADefaultHatName storage
When defining an AADefaultHatName entry, it was being stored in the
passed mconfig location, which is not the module specific server
config, but instead the top level (i.e. no path defined) default
directory/location config. This would be superceded by a more specific
directory config if it applied to the request. Thus, if an AAHatName was
defined that applied, but the named hat was not defined in the apparmor
policy, mod_apparmor would not attempt to fall back to the defined
AADefaultHatName, but instead jump directly to trying the DEFAULT_URI
hat.

This patch fixes it by storing the defined AADefaultHatName correctly in
the module specific storage in the related server data structure. It
also adds a bit of developer debugging statements.

Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: John Johansen <john.johansen@canonical.com>


Bug: https://launchpad.net/bugs/1207424
2014-01-23 13:46:17 -08:00
..
mod_apparmor mod_apparmor: fix AADefaultHatName storage 2014-01-23 13:46:17 -08:00
pam_apparmor Convert make errors finding libapparmor to only occur when building 2014-01-09 12:11:19 -08:00
tomcat_apparmor mod_apparmor/pam_apparmor: fix libapparmor search path and add USE_SYSTEM support 2014-01-09 11:57:13 -08:00