Skip to content
Commit 28f5df21 authored by Yann Droneaud's avatar Yann Droneaud Committed by Jason A. Donenfeld
Browse files

random: vDSO: reject unknown getrandom() flags

Like the getrandom() syscall, vDSO getrandom() must also reject unknown
flags. [1]

It would be possible to return -EINVAL from vDSO itself, but in the
possible case that a new flag is added to getrandom() syscall in the
future, it would be easier to get the behavior from the syscall, instead
of erroring until the vDSO is extended to support the new flag or
explicitly falling back.

[1] Designing the API: Planning for Extension
    https://docs.kernel.org/process/adding-syscalls.html#designing-the-api-planning-for-extension



Signed-off-by: default avatarYann Droneaud <yann@droneaud.fr>
[Jason: reworded commit message]
Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
parent dc1c8034
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment