audit: Abstract hash key handling
commitf410ff65548c548fed5f7e38c4ef57a73ebfe3bd
authorJan Kara <jack@suse.cz>
Fri, 16 Dec 2016 09:13:37 +0000 (16 10:13 +0100)
committerJan Kara <jack@suse.cz>
Wed, 5 Apr 2017 07:39:37 +0000 (5 09:39 +0200)
treea01e58d65f6a79dbcc7a7c60218bbd63b3feb49c
parentc97476400d3b73376fc055e828d7388d6b9ea99a
audit: Abstract hash key handling

Audit tree currently uses inode pointer as a key into the hash table.
Getting that from notification mark will be somewhat more difficult with
coming fsnotify changes. So abstract getting of hash key from the audit
chunk and inode so that we can change the method to obtain a key easily.

Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
CC: Paul Moore <paul@paul-moore.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Jan Kara <jack@suse.cz>
kernel/audit_tree.c