diff options
-rw-r--r-- | include/linux/audit.h | 1 | ||||
-rw-r--r-- | kernel/auditfilter.c | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index af84234e1f6e..599f3bd2d6c5 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -46,7 +46,6 @@ struct audit_tree; | |||
46 | struct sk_buff; | 46 | struct sk_buff; |
47 | 47 | ||
48 | struct audit_krule { | 48 | struct audit_krule { |
49 | int vers_ops; | ||
50 | u32 pflags; | 49 | u32 pflags; |
51 | u32 flags; | 50 | u32 flags; |
52 | u32 listnr; | 51 | u32 listnr; |
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 4f68a326d92e..72e1660a79a3 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c | |||
@@ -425,7 +425,6 @@ static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data, | |||
425 | goto exit_nofree; | 425 | goto exit_nofree; |
426 | 426 | ||
427 | bufp = data->buf; | 427 | bufp = data->buf; |
428 | entry->rule.vers_ops = 2; | ||
429 | for (i = 0; i < data->field_count; i++) { | 428 | for (i = 0; i < data->field_count; i++) { |
430 | struct audit_field *f = &entry->rule.fields[i]; | 429 | struct audit_field *f = &entry->rule.fields[i]; |
431 | 430 | ||
@@ -758,7 +757,6 @@ struct audit_entry *audit_dupe_rule(struct audit_krule *old) | |||
758 | return ERR_PTR(-ENOMEM); | 757 | return ERR_PTR(-ENOMEM); |
759 | 758 | ||
760 | new = &entry->rule; | 759 | new = &entry->rule; |
761 | new->vers_ops = old->vers_ops; | ||
762 | new->flags = old->flags; | 760 | new->flags = old->flags; |
763 | new->pflags = old->pflags; | 761 | new->pflags = old->pflags; |
764 | new->listnr = old->listnr; | 762 | new->listnr = old->listnr; |