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 | #define AUDIT_UID_UNSET (unsigned int)-1 | 467 | #define AUDIT_UID_UNSET (unsigned int)-1 |
| 468 | #define AUDIT_SID_UNSET ((unsigned int)-1) | ||
| 468 | 469 | ||
| 469 | /* audit_rule_data supports filter rules with both integer and string | 470 | /* audit_rule_data supports filter rules with both integer and string |
| 470 | * fields. It corresponds with AUDIT_ADD_RULE, AUDIT_DEL_RULE and | 471 | * fields. It corresponds with AUDIT_ADD_RULE, AUDIT_DEL_RULE and |