aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-17 20:12:05 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:17 -0400
commit28a3a7eb3b1f3e7d834e19f06e794e429058a4dd (patch)
treec025ce90e250786784e18cde38d6c9c89e7b31f9 /kernel/auditsc.c
parent40554c3dae83bd892b7fbfaa2ea9de739cbcf065 (diff)
audit: reimplement audit_trees using fsnotify rather than inotify
Simply switch audit_trees from using inotify to using fsnotify for it's inode pinning and disappearing act information. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 240063c370e6..786901cd8217 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -1725,7 +1725,7 @@ static inline void handle_one(const struct inode *inode)
1725 struct audit_tree_refs *p; 1725 struct audit_tree_refs *p;
1726 struct audit_chunk *chunk; 1726 struct audit_chunk *chunk;
1727 int count; 1727 int count;
1728 if (likely(list_empty(&inode->inotify_watches))) 1728 if (likely(hlist_empty(&inode->i_fsnotify_mark_entries)))
1729 return; 1729 return;
1730 context = current->audit_context; 1730 context = current->audit_context;
1731 p = context->trees; 1731 p = context->trees;
@@ -1768,7 +1768,7 @@ retry:
1768 seq = read_seqbegin(&rename_lock); 1768 seq = read_seqbegin(&rename_lock);
1769 for(;;) { 1769 for(;;) {
1770 struct inode *inode = d->d_inode; 1770 struct inode *inode = d->d_inode;
1771 if (inode && unlikely(!list_empty(&inode->inotify_watches))) { 1771 if (inode && unlikely(!hlist_empty(&inode->i_fsnotify_mark_entries))) {
1772 struct audit_chunk *chunk; 1772 struct audit_chunk *chunk;
1773 chunk = audit_tree_lookup(inode); 1773 chunk = audit_tree_lookup(inode);
1774 if (chunk) { 1774 if (chunk) {