diff options
author | Richard Guy Briggs | 2015-08-05 23:48:20 -0400 |
---|---|---|
committer | Paul Moore | 2015-08-06 14:39:02 -0400 |
commit | 84cb777e67814f2e06a99ff228f743409e9617e9 (patch) | |
tree | 86cbb87dbab8defa95a45de645c6a53a708c67db /include/linux/audit.h | |
parent | 8c85fc9ae69a4510ba5e2bd5fac2c1d9d60967ad (diff) |
audit: use macros for unset inode and device values
Clean up a number of places were casted magic numbers are used to represent
unset inode and device numbers in preparation for the audit by executable path
patch set.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: enclosed the _UNSET macros in parentheses for ./scripts/checkpatch]
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index c2e7e3a83965..759feb0e9d13 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -27,6 +27,9 @@ #include <linux/ptrace.h> #include <uapi/linux/audit.h> +#define AUDIT_INO_UNSET ((unsigned long)-1) +#define AUDIT_DEV_UNSET ((dev_t)-1) + struct audit_sig_info { uid_t uid; pid_t pid; |