diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2015-08-06 05:48:20 +0200 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-08-06 20:39:02 +0200 |
commit | 84cb777e67814f2e06a99ff228f743409e9617e9 (patch) | |
tree | 86cbb87dbab8defa95a45de645c6a53a708c67db /kernel/audit.c | |
parent | audit: make audit_del_rule() more robust (diff) | |
download | linux-84cb777e67814f2e06a99ff228f743409e9617e9.tar.xz linux-84cb777e67814f2e06a99ff228f743409e9617e9.zip |
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 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 7497a5a0fac0..060153dc47d4 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -1759,7 +1759,7 @@ void audit_log_name(struct audit_context *context, struct audit_names *n, } else audit_log_format(ab, " name=(null)"); - if (n->ino != (unsigned long)-1) { + if (n->ino != AUDIT_INO_UNSET) { audit_log_format(ab, " inode=%lu" " dev=%02x:%02x mode=%#ho" " ouid=%u ogid=%u rdev=%02x:%02x", |