Skip to content

Commit 1602a6c

Browse files
committed
selinux: fix style issues in security/selinux/ss/conditional.h
As part of on ongoing effort to perform more automated testing and provide more tools for individual developers to validate their patches before submitting, we are trying to make our code "clang-format clean". My hope is that once we have fixed all of our style "quirks", developers will be able to run clang-format on their patches to help avoid silly formatting problems and ensure their changes fit in well with the rest of the SELinux kernel code. Signed-off-by: Paul Moore <[email protected]>
1 parent 00ddc59 commit 1602a6c

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

security/selinux/ss/conditional.h

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22
/* Authors: Karl MacMillan <[email protected]>
33
* Frank Mayer <[email protected]>
4-
*
5-
* Copyright (C) 2003 - 2004 Tresys Technology, LLC
4+
* Copyright (C) 2003 - 2004 Tresys Technology, LLC
65
*/
76

87
#ifndef _CONDITIONAL_H_
@@ -20,14 +19,14 @@
2019
* in reverse polish notation.
2120
*/
2221
struct cond_expr_node {
23-
#define COND_BOOL 1 /* plain bool */
24-
#define COND_NOT 2 /* !bool */
25-
#define COND_OR 3 /* bool || bool */
26-
#define COND_AND 4 /* bool && bool */
27-
#define COND_XOR 5 /* bool ^ bool */
28-
#define COND_EQ 6 /* bool == bool */
29-
#define COND_NEQ 7 /* bool != bool */
30-
#define COND_LAST COND_NEQ
22+
#define COND_BOOL 1 /* plain bool */
23+
#define COND_NOT 2 /* !bool */
24+
#define COND_OR 3 /* bool || bool */
25+
#define COND_AND 4 /* bool && bool */
26+
#define COND_XOR 5 /* bool ^ bool */
27+
#define COND_EQ 6 /* bool == bool */
28+
#define COND_NEQ 7 /* bool != bool */
29+
#define COND_LAST COND_NEQ
3130
u32 expr_type;
3231
u32 boolean;
3332
};
@@ -75,9 +74,9 @@ int cond_write_bool(void *key, void *datum, void *ptr);
7574
int cond_write_list(struct policydb *p, void *fp);
7675

7776
void cond_compute_av(struct avtab *ctab, struct avtab_key *key,
78-
struct av_decision *avd, struct extended_perms *xperms);
77+
struct av_decision *avd, struct extended_perms *xperms);
7978
void cond_compute_xperms(struct avtab *ctab, struct avtab_key *key,
80-
struct extended_perms_decision *xpermd);
79+
struct extended_perms_decision *xpermd);
8180
void evaluate_cond_nodes(struct policydb *p);
8281
void cond_policydb_destroy_dup(struct policydb *p);
8382
int cond_policydb_dup(struct policydb *new, struct policydb *orig);

0 commit comments

Comments
 (0)