diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-06-09 10:27:01 +0800 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-06-10 20:59:05 -0400 |
commit | 6ddb5680085a3eefe0c6267e3514060045a13c95 (patch) | |
tree | 16218db0e235cf77bd6f71ac658dcded5943dc31 /kernel | |
parent | dd8b865cc40832d32bbf912a65c657483533fdd4 (diff) | |
download | lwn-6ddb5680085a3eefe0c6267e3514060045a13c95.tar.gz lwn-6ddb5680085a3eefe0c6267e3514060045a13c95.zip |
audit: remove trailing spaces and tabs
Run the following command to find and remove the trailing spaces and tabs:
sed -r -i 's/[ \t]+$//' <audit_files>
The files to be checked are as follows:
kernel/audit*
include/linux/audit.h
include/uapi/linux/audit.h
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/audit.h | 2 | ||||
-rw-r--r-- | kernel/auditsc.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index e518ad9374fc..b565ea16c0a5 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -/* audit -- definition of audit_context structure and supporting types +/* audit -- definition of audit_context structure and supporting types * * Copyright 2003-2004 Red Hat, Inc. * Copyright 2005 Hewlett-Packard Development Company, L.P. diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 123f9dc12665..8dd73a64f921 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -343,13 +343,13 @@ static int audit_compare_uid(kuid_t uid, { struct audit_names *n; int rc; - + if (name) { rc = audit_uid_comparator(uid, f->op, name->uid); if (rc) return rc; } - + if (ctx) { list_for_each_entry(n, &ctx->names_list, list) { rc = audit_uid_comparator(uid, f->op, n->uid); @@ -367,13 +367,13 @@ static int audit_compare_gid(kgid_t gid, { struct audit_names *n; int rc; - + if (name) { rc = audit_gid_comparator(gid, f->op, name->gid); if (rc) return rc; } - + if (ctx) { list_for_each_entry(n, &ctx->names_list, list) { rc = audit_gid_comparator(gid, f->op, n->gid); |