[apparmor] [patch 5/8] mod_apparmor: improve initial aa_change_hat call log message

Steve Beattie steve at nxnw.org
Wed Jan 22 20:47:51 UTC 2014


This patch adds the name of the hat to the log message about the
initial aa_change_hat call, jsut to be explicit about what's happening
when debugging.

Signed-off-by: Steve Beattie <steve at nxnw.org>
---
 changehat/mod_apparmor/mod_apparmor.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: b/changehat/mod_apparmor/mod_apparmor.c
===================================================================
--- a/changehat/mod_apparmor/mod_apparmor.c
+++ b/changehat/mod_apparmor/mod_apparmor.c
@@ -93,7 +93,8 @@ immunix_child_init (apr_pool_t *p, serve
 {
     int ret;
 
-    ap_log_error(APLOG_MARK, APLOG_TRACE1, 0, ap_server_conf, "init: calling change_hat");
+    ap_log_error(APLOG_MARK, APLOG_TRACE1, 0, ap_server_conf,
+		    "init: calling change_hat with '%s'", DEFAULT_HAT);
     ret = aa_change_hat(DEFAULT_HAT, magic_token);
     if (ret < 0) {
     	aa_change_hat(NULL, magic_token);




More information about the AppArmor mailing list