Use a macro, "AUDIT_SID_UNSET", to replace each instance of initialization and comparison to an audit session ID.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -465,6 +465,7 @@ struct audit_tty_status { · 464 unmodified lines | ||
| 465 | 465 | }; |
| 466 | 466 | |
| 467 | 467 | #define AUDIT_UID_UNSET (unsigned int)-1 |
| 468 | +#define AUDIT_SID_UNSET ((unsigned int)-1) | |
| 468 | 469 | |
| 469 | 470 | /* audit_rule_data supports filter rules with both integer and string |
| 470 | 471 | * fields. It corresponds with AUDIT_ADD_RULE, AUDIT_DEL_RULE and |