mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Change auditon(2) so that if somebody supplies an invalid command, it
returns EINVAL. Right now we return 0 or success for invalid commands, which could be quite problematic in certain conditions. MFC after: 1 week Discussed with: rwatson
This commit is contained in:
parent
af9db76b65
commit
e5ad5f4d70
1 changed files with 3 additions and 0 deletions
|
|
@ -406,6 +406,9 @@ auditon(struct thread *td, struct auditon_args *uap)
|
|||
(udata.au_trigger > AUDIT_TRIGGER_MAX))
|
||||
return (EINVAL);
|
||||
return (audit_send_trigger(udata.au_trigger));
|
||||
|
||||
default:
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue