mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-08 09:30:41 +00:00
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
e39ce4cafb
commit
cb3d7cd839
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334296
|
@ -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 a new issue