Fix "Bad tailq" panic when auditing auditon(A_SETCLASS, ...)
Due to an oversight in r195280, auditon(A_SETCLASS, ...) would cause a tailq element to get added to the tailq twice, resulting in a circular tailq. This panics when INVARIANTS are on. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D15381
This commit is contained in:
parent
99ece95da0
commit
7c423a65c9
@ -427,7 +427,6 @@ audit_sys_auditon(struct audit_record *ar, struct au_record *rec)
|
||||
break;
|
||||
|
||||
case A_SETCLASS:
|
||||
kau_write(rec, tok);
|
||||
tok = au_to_arg32(2, "setclass:ec_event",
|
||||
ar->ar_arg_auditon.au_evclass.ec_number);
|
||||
kau_write(rec, tok);
|
||||
|
Loading…
Reference in New Issue
Block a user