diff options
author | Amy Griffis <amy.griffis@hp.com> | 2005-08-17 11:05:35 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-08-17 11:05:35 -0400 |
commit | 3c789a19054034847afe80af2f23ebb0eebfbad6 (patch) | |
tree | cc983b5fd132c329e16d61d408d8a26ca048cf6b /kernel/audit.c | |
parent | c3896495942392f1a792da1cafba7a573cbf6fc2 (diff) |
AUDIT: Prevent duplicate syscall rules
The following patch against audit.81 prevents duplicate syscall rules in
a given filter list by walking the list on each rule add.
I also removed the unused struct audit_entry in audit.c and made the
static inlines in auditsc.c consistent.
Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index d321e251d32b..8376ec10cf24 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -142,11 +142,6 @@ static void audit_set_pid(struct audit_buffer *ab, pid_t pid) | |||
142 | nlh->nlmsg_pid = pid; | 142 | nlh->nlmsg_pid = pid; |
143 | } | 143 | } |
144 | 144 | ||
145 | struct audit_entry { | ||
146 | struct list_head list; | ||
147 | struct audit_rule rule; | ||
148 | }; | ||
149 | |||
150 | static void audit_panic(const char *message) | 145 | static void audit_panic(const char *message) |
151 | { | 146 | { |
152 | switch (audit_failure) | 147 | switch (audit_failure) |