mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]>
This commit is contained in:
parent
cfcad62c74
commit
35fe4d0b1b
3 changed files with 23 additions and 24 deletions
|
|
@ -109,10 +109,7 @@ extern dev_t audit_watch_dev(struct audit_watch *watch);
|
|||
extern void audit_put_watch(struct audit_watch *watch);
|
||||
extern void audit_get_watch(struct audit_watch *watch);
|
||||
extern int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op);
|
||||
extern int audit_get_nd(char *path, struct nameidata **ndp, struct nameidata **ndw);
|
||||
extern void audit_put_nd(struct nameidata *ndp, struct nameidata *ndw);
|
||||
extern int audit_add_watch(struct audit_krule *krule, struct nameidata *ndp,
|
||||
struct nameidata *ndw);
|
||||
extern int audit_add_watch(struct audit_krule *krule);
|
||||
extern void audit_remove_watch(struct audit_watch *watch);
|
||||
extern void audit_remove_watch_rule(struct audit_krule *krule, struct list_head *list);
|
||||
extern void audit_inotify_unregister(struct list_head *in_list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue