apparmor/changehat
Steve Beattie 1c03c6249f mod_apparmor: fix AADefaultHatName storage
Merge from trunk revno: 2335

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.

For 2.8:
Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: Christian Boltz <apparmor@cboltz.de>
2014-02-14 16:43:37 -08:00
..
mod_apparmor mod_apparmor: fix AADefaultHatName storage 2014-02-14 16:43:37 -08:00
pam_apparmor From: Jeff Mahoney <jeffm@suse.com> 2011-02-08 07:21:20 -08:00
tomcat_apparmor adjust documentation "release" name to match other manpages. 2011-05-27 15:04:42 -07:00