Skip to content

Commit 7184487

Browse files
committedFeb 12, 2015
Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/audit
Pull audit fix from Paul Moore: "Just one patch from the audit tree for v3.20, and a very minor one at that. The patch simply removes an old, unused field from the audit_krule structure, a private audit-only struct. In audit related news, we did a proper overhaul of the audit pathname code and removed the nasty getname()/putname() hacks for audit, you should see those patches in Al's vfs tree if you haven't already. That's it for audit this time, let's hope for a quiet -rcX series" * 'upstream' of git://git.infradead.org/users/pcmoore/audit: audit: remove vestiges of vers_ops
2 parents 59d5373 + 2fded7f commit 7184487

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed
 

‎include/linux/audit.h

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ struct audit_tree;
4646
struct sk_buff;
4747

4848
struct audit_krule {
49-
int vers_ops;
5049
u32 pflags;
5150
u32 flags;
5251
u32 listnr;

‎kernel/auditfilter.c

-2
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data,
425425
goto exit_nofree;
426426

427427
bufp = data->buf;
428-
entry->rule.vers_ops = 2;
429428
for (i = 0; i < data->field_count; i++) {
430429
struct audit_field *f = &entry->rule.fields[i];
431430

@@ -758,7 +757,6 @@ struct audit_entry *audit_dupe_rule(struct audit_krule *old)
758757
return ERR_PTR(-ENOMEM);
759758

760759
new = &entry->rule;
761-
new->vers_ops = old->vers_ops;
762760
new->flags = old->flags;
763761
new->pflags = old->pflags;
764762
new->listnr = old->listnr;

0 commit comments

Comments
 (0)