Messages in this thread Patch in this message | | | From | Gao feng <> | Subject | [PATCH RFC 22/48] Audit: Log audit config change in uninit user namespace | Date | Tue, 7 May 2013 10:20:43 +0800 |
| |
This patch allow to log audit config change in uninit user namespace.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> --- kernel/audit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/audit.c b/kernel/audit.c index c8329ce..cac4b21 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -251,7 +251,7 @@ static int audit_log_config_change(char *function_name, int new, int old, struct user_namespace *ns = current_user_ns(); int rc = 0; - ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_CONFIG_CHANGE); + ab = audit_log_start_ns(ns, NULL, GFP_KERNEL, AUDIT_CONFIG_CHANGE); if (unlikely(!ab)) return rc; audit_log_format(ab, "%s=%d old=%d auid=%u ses=%u", function_name, new, @@ -270,7 +270,7 @@ static int audit_log_config_change(char *function_name, int new, int old, } } audit_log_format(ab, " res=%d", allow_changes); - audit_log_end(ab); + audit_log_end_ns(ns, ab); return rc; } -- 1.8.1.4
| |