diff options
author | Eric Paris <eparis@redhat.com> | 2009-06-11 14:31:36 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-23 23:51:05 -0400 |
commit | 35fe4d0b1b12286a81938e9c5fdfaf639ac0ce5b (patch) | |
tree | c520706593fd33748944315bb87d789a7f31960e /kernel/audit.h | |
parent | cfcad62c74abfef83762dc05a556d21bdf3980a2 (diff) |
Audit: move audit_get_nd completely into audit_watch
audit_get_nd() is only used by audit_watch and could be more cleanly
implemented by having the audit watch functions call it when needed rather
than making the generic audit rule parsing code deal with those objects.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit.h')
-rw-r--r-- | kernel/audit.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index 704d5b01d9fd..bb1c0d69db08 100644 --- a/kernel/audit.h +++ b/kernel/audit.h | |||
@@ -109,10 +109,7 @@ extern dev_t audit_watch_dev(struct audit_watch *watch); | |||
109 | extern void audit_put_watch(struct audit_watch *watch); | 109 | extern void audit_put_watch(struct audit_watch *watch); |
110 | extern void audit_get_watch(struct audit_watch *watch); | 110 | extern void audit_get_watch(struct audit_watch *watch); |
111 | extern int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op); | 111 | extern int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op); |
112 | extern int audit_get_nd(char *path, struct nameidata **ndp, struct nameidata **ndw); | 112 | extern int audit_add_watch(struct audit_krule *krule); |
113 | extern void audit_put_nd(struct nameidata *ndp, struct nameidata *ndw); | ||
114 | extern int audit_add_watch(struct audit_krule *krule, struct nameidata *ndp, | ||
115 | struct nameidata *ndw); | ||
116 | extern void audit_remove_watch(struct audit_watch *watch); | 113 | extern void audit_remove_watch(struct audit_watch *watch); |
117 | extern void audit_remove_watch_rule(struct audit_krule *krule, struct list_head *list); | 114 | extern void audit_remove_watch_rule(struct audit_krule *krule, struct list_head *list); |
118 | extern void audit_inotify_unregister(struct list_head *in_list); | 115 | extern void audit_inotify_unregister(struct list_head *in_list); |