Searched refs:watch (Results 1 – 3 of 3) sorted by relevance
112 static inline void audit_get_watch(struct audit_watch *watch) in audit_get_watch() argument114 atomic_inc(&watch->count); in audit_get_watch()117 static void audit_put_watch(struct audit_watch *watch) in audit_put_watch() argument119 if (atomic_dec_and_test(&watch->count)) { in audit_put_watch()120 WARN_ON(watch->parent); in audit_put_watch()121 WARN_ON(!list_empty(&watch->rules)); in audit_put_watch()122 kfree(watch->path); in audit_put_watch()123 kfree(watch); in audit_put_watch()127 static void audit_remove_watch(struct audit_watch *watch) in audit_remove_watch() argument129 list_del(&watch->wlist); in audit_remove_watch()[all …]
23 struct inotify_watch watch; member131 inotify_init_watch(&chunk->watch); in alloc_chunk()171 struct list_head *list = chunk_hash(chunk->watch.inode); in insert_hash()182 if (p->watch.inode == inode) { in audit_tree_lookup()216 if (!pin_inotify_watch(&chunk->watch)) { in untag_chunk()240 mutex_lock(&chunk->watch.inode->inotify_mutex); in untag_chunk()242 mutex_unlock(&chunk->watch.inode->inotify_mutex); in untag_chunk()257 inotify_evict_watch(&chunk->watch); in untag_chunk()258 mutex_unlock(&chunk->watch.inode->inotify_mutex); in untag_chunk()259 put_inotify_watch(&chunk->watch); in untag_chunk()[all …]
542 if (name && rule->watch->ino != (unsigned long)-1) in audit_filter_rules()543 result = (name->dev == rule->watch->dev && in audit_filter_rules()544 name->ino == rule->watch->ino); in audit_filter_rules()