Skip to content

Commit

Permalink
remove unused fn audit_add_dir and decl audit_rule_syscall_data
Browse files Browse the repository at this point in the history
The former has no activity since pre-1.7.4, no in-tree users and no manpage, so
remove it.  The latter is only used locally, remove prototype.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
rgbriggs authored and RH-steve-grubb committed Oct 28, 2021
1 parent 30cbd35 commit 24fa18c
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions lib/libaudit.c
Original file line number Diff line number Diff line change
@@ -742,11 +742,6 @@ int audit_add_watch(struct audit_rule_data **rulep, const char *path)
return audit_add_watch_dir(AUDIT_WATCH, rulep, path);
}

int audit_add_dir(struct audit_rule_data **rulep, const char *path)
{
return audit_add_watch_dir(AUDIT_DIR, rulep, path);
}

int audit_add_watch_dir(int type, struct audit_rule_data **rulep,
const char *path)
{
2 changes: 0 additions & 2 deletions lib/libaudit.h
Original file line number Diff line number Diff line change
@@ -656,7 +656,6 @@ extern int audit_request_signal_info(int fd);
/* AUDIT_WATCH */
extern int audit_update_watch_perms(struct audit_rule_data *rule, int perms);
extern int audit_add_watch(struct audit_rule_data **rulep, const char *path);
extern int audit_add_dir(struct audit_rule_data **rulep, const char *path);
extern int audit_add_watch_dir(int type, struct audit_rule_data **rulep,
const char *path);
extern int audit_trim_subtrees(int fd);
@@ -701,7 +700,6 @@ extern int audit_log_user_command(int audit_fd, int type, const char *command,
extern struct audit_rule_data *audit_rule_create_data(void);
/* Initializes an existing audit_rule_data struct */
extern void audit_rule_init_data(struct audit_rule_data *rule);
extern int audit_rule_syscall_data(struct audit_rule_data *rule, int scall);
extern int audit_rule_syscallbyname_data(struct audit_rule_data *rule,
const char *scall);
/* Note that the following function takes a **, where audit_rule_fieldpair()

0 comments on commit 24fa18c

Please sign in to comment.