Skip to content

Commit 6ddb568

Browse files
Zhen Leipcmoore
authored andcommitted
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 <[email protected]> Acked-by: Richard Guy Briggs <[email protected]> Signed-off-by: Paul Moore <[email protected]>
1 parent dd8b865 commit 6ddb568

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

include/uapi/linux/audit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* 2500 - 2999 future user space (maybe integrity labels and related events)
4949
*
5050
* Messages from 1000-1199 are bi-directional. 1200-1299 & 2100 - 2999 are
51-
* exclusively user space. 1300-2099 is kernel --> user space
51+
* exclusively user space. 1300-2099 is kernel --> user space
5252
* communication.
5353
*/
5454
#define AUDIT_GET 1000 /* Get status */
@@ -78,7 +78,7 @@
7878
#define AUDIT_LAST_USER_MSG 1199
7979
#define AUDIT_FIRST_USER_MSG2 2100 /* More user space messages */
8080
#define AUDIT_LAST_USER_MSG2 2999
81-
81+
8282
#define AUDIT_DAEMON_START 1200 /* Daemon startup record */
8383
#define AUDIT_DAEMON_END 1201 /* Daemon normal stop record */
8484
#define AUDIT_DAEMON_ABORT 1202 /* Daemon error stop record */

kernel/audit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0-or-later */
2-
/* audit -- definition of audit_context structure and supporting types
2+
/* audit -- definition of audit_context structure and supporting types
33
*
44
* Copyright 2003-2004 Red Hat, Inc.
55
* Copyright 2005 Hewlett-Packard Development Company, L.P.

kernel/auditsc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,13 @@ static int audit_compare_uid(kuid_t uid,
343343
{
344344
struct audit_names *n;
345345
int rc;
346-
346+
347347
if (name) {
348348
rc = audit_uid_comparator(uid, f->op, name->uid);
349349
if (rc)
350350
return rc;
351351
}
352-
352+
353353
if (ctx) {
354354
list_for_each_entry(n, &ctx->names_list, list) {
355355
rc = audit_uid_comparator(uid, f->op, n->uid);
@@ -367,13 +367,13 @@ static int audit_compare_gid(kgid_t gid,
367367
{
368368
struct audit_names *n;
369369
int rc;
370-
370+
371371
if (name) {
372372
rc = audit_gid_comparator(gid, f->op, name->gid);
373373
if (rc)
374374
return rc;
375375
}
376-
376+
377377
if (ctx) {
378378
list_for_each_entry(n, &ctx->names_list, list) {
379379
rc = audit_gid_comparator(gid, f->op, n->gid);

0 commit comments

Comments
 (0)