Home
last modified time | relevance | path

Searched refs:watch (Results 1 – 6 of 6) sorted by relevance

/kernel/
Daudit_watch.c100 void audit_get_watch(struct audit_watch *watch) in audit_get_watch() argument
102 refcount_inc(&watch->count); in audit_get_watch()
105 void audit_put_watch(struct audit_watch *watch) in audit_put_watch() argument
107 if (refcount_dec_and_test(&watch->count)) { in audit_put_watch()
108 WARN_ON(watch->parent); in audit_put_watch()
109 WARN_ON(!list_empty(&watch->rules)); in audit_put_watch()
110 kfree(watch->path); in audit_put_watch()
111 kfree(watch); in audit_put_watch()
115 static void audit_remove_watch(struct audit_watch *watch) in audit_remove_watch() argument
117 list_del(&watch->wlist); in audit_remove_watch()
[all …]
Dwatch_queue.c202 struct watch *watch; in __post_watch_notification() local
211 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification()
212 if (watch->id != id) in __post_watch_notification()
215 n->info |= watch->info_id; in __post_watch_notification()
217 wqueue = rcu_dereference(watch->queue); in __post_watch_notification()
222 if (security_post_notification(watch->cred, cred, n) < 0) in __post_watch_notification()
417 struct watch *watch = container_of(rcu, struct watch, rcu); in free_watch() local
419 put_watch_queue(rcu_access_pointer(watch->queue)); in free_watch()
420 atomic_dec(&watch->cred->user->nr_watches); in free_watch()
421 put_cred(watch->cred); in free_watch()
[all …]
Dauditfilter.c89 if (erule->watch) in audit_free_rule()
90 audit_put_watch(erule->watch); in audit_free_rule()
158 krule->inode_f || krule->watch || krule->tree || in audit_to_inode()
671 audit_watch_path(krule->watch)); in audit_krule_to_data()
735 if (strcmp(audit_watch_path(a->watch), in audit_compare_rule()
736 audit_watch_path(b->watch))) in audit_compare_rule()
889 if (old->watch) { in audit_dupe_rule()
890 audit_get_watch(old->watch); in audit_dupe_rule()
891 new->watch = old->watch; in audit_dupe_rule()
909 } else if (entry->rule.watch) { in audit_find_rule()
[all …]
Daudit.h267 extern void audit_put_watch(struct audit_watch *watch);
268 extern void audit_get_watch(struct audit_watch *watch);
273 extern char *audit_watch_path(struct audit_watch *watch);
274 extern int audit_watch_compare(struct audit_watch *watch, unsigned long ino,
Daudit_tree.c732 rule->inode_f || rule->watch || rule->tree) in audit_make_tree()
Dauditsc.c631 result = audit_watch_compare(rule->watch, in audit_filter_rules()