[PATCH] Fix whitespace in CWD record

Paul Moore paul at paul-moore.com
Thu Jul 14 21:51:36 UTC 2016


On Thu, Jul 14, 2016 at 10:59 AM, Steve Grubb <sgrubb at redhat.com> wrote:
> Fix the whitespace in the CWD record
>
> Signed-off-by: Steve Grubb <sgrubb at redhat.com>
> ---
>  kernel/auditsc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Generally I don't like merging patches this late, but this patch is so
trivial I'll make an exception.  Also, I fixed it this time, but in
the future please prefix your patch subject lines with the subsystem
name, e.g. "audit: fix whitespace in CWD record".

> diff -urp linux-4.7.0-0.rc4.git1.1.fc23.x86_64.orig/kernel/auditsc.c linux-4.7.0-0.rc4.git1.1.fc23.x86_64/kernel/auditsc.c
> --- linux-4.7.0-0.rc4.git1.1.fc23.x86_64.orig/kernel/auditsc.c  2016-06-25 12:44:41.756440052 -0400
> +++ linux-4.7.0-0.rc4.git1.1.fc23.x86_64/kernel/auditsc.c       2016-07-14 09:56:50.222227280 -0400
> @@ -1426,7 +1426,7 @@ static void audit_log_exit(struct audit_
>         if (context->pwd.dentry && context->pwd.mnt) {
>                 ab = audit_log_start(context, GFP_KERNEL, AUDIT_CWD);
>                 if (ab) {
> -                       audit_log_d_path(ab, " cwd=", &context->pwd);
> +                       audit_log_d_path(ab, "cwd=", &context->pwd);
>                         audit_log_end(ab);
>                 }
>         }

-- 
paul moore
www.paul-moore.com




More information about the Linux-audit mailing list