mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
make the e->rule.xxx shorter in kernel auditfilter.c
make the e->rule.xxx shorter in kernel/auditfilter.c -- --------------------------------- Zhenwen Xu - Open and Free Home Page: http://zhwen.org My Studio: http://dim4.cn >From 99692dc640b278f1cb1a15646ce42f22e89c0f77 Mon Sep 17 00:00:00 2001 From: Zhenwen Xu <Helight.Xu@gmail.com> Date: Thu, 12 Mar 2009 22:04:59 +0800 Subject: [PATCH] make the e->rule.xxx shorter in kernel/auditfilter.c Signed-off-by: Zhenwen Xu <Helight.Xu@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6b96255998
commit
c28bb7da74
1 changed files with 8 additions and 8 deletions
|
@ -135,18 +135,18 @@ static void audit_remove_watch(struct audit_watch *watch)
|
||||||
static inline void audit_free_rule(struct audit_entry *e)
|
static inline void audit_free_rule(struct audit_entry *e)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
struct audit_krule *erule = &e->rule;
|
||||||
/* some rules don't have associated watches */
|
/* some rules don't have associated watches */
|
||||||
if (e->rule.watch)
|
if (erule->watch)
|
||||||
audit_put_watch(e->rule.watch);
|
audit_put_watch(erule->watch);
|
||||||
if (e->rule.fields)
|
if (erule->fields)
|
||||||
for (i = 0; i < e->rule.field_count; i++) {
|
for (i = 0; i < erule->field_count; i++) {
|
||||||
struct audit_field *f = &e->rule.fields[i];
|
struct audit_field *f = &erule->fields[i];
|
||||||
kfree(f->lsm_str);
|
kfree(f->lsm_str);
|
||||||
security_audit_rule_free(f->lsm_rule);
|
security_audit_rule_free(f->lsm_rule);
|
||||||
}
|
}
|
||||||
kfree(e->rule.fields);
|
kfree(erule->fields);
|
||||||
kfree(e->rule.filterkey);
|
kfree(erule->filterkey);
|
||||||
kfree(e);
|
kfree(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue