|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */
|
2 | 2 | /* Authors: Karl MacMillan <[email protected]>
|
3 | 3 |
|
4 |
| - * |
5 |
| - * Copyright (C) 2003 - 2004 Tresys Technology, LLC |
| 4 | + * Copyright (C) 2003 - 2004 Tresys Technology, LLC |
6 | 5 | */
|
7 | 6 |
|
8 | 7 | #ifndef _CONDITIONAL_H_
|
|
20 | 19 | * in reverse polish notation.
|
21 | 20 | */
|
22 | 21 | 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 |
31 | 30 | u32 expr_type;
|
32 | 31 | u32 boolean;
|
33 | 32 | };
|
@@ -75,9 +74,9 @@ int cond_write_bool(void *key, void *datum, void *ptr);
|
75 | 74 | int cond_write_list(struct policydb *p, void *fp);
|
76 | 75 |
|
77 | 76 | 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); |
79 | 78 | void cond_compute_xperms(struct avtab *ctab, struct avtab_key *key,
|
80 |
| - struct extended_perms_decision *xpermd); |
| 79 | + struct extended_perms_decision *xpermd); |
81 | 80 | void evaluate_cond_nodes(struct policydb *p);
|
82 | 81 | void cond_policydb_destroy_dup(struct policydb *p);
|
83 | 82 | int cond_policydb_dup(struct policydb *new, struct policydb *orig);
|
|
0 commit comments