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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176887
@ -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 New Issue
Block a user