sysvipc: Return EINVAL for invalid msgctl commands
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 29 Sep 2020 17:45:09 +0000 (14:45 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 2 Oct 2020 19:11:59 +0000 (16:11 -0300)
commitbe9b0b9a012780a403a266c90878efffb9a5f3ca
tree35bbc1910849c6687267b06b24b84373e48a832d
parent20a00dbefca5695cccaa44846a482db8ccdd85ab
sysvipc: Return EINVAL for invalid msgctl commands

It avoids regressions on possible future commands that might require
additional libc support.  The downside is new commands added by newer
kernels will need further glibc support.

Checked on x86_64-linux-gnu and i686-linux-gnu (Linux v4.15 and v5.4).
sysdeps/unix/sysv/linux/msgctl.c
sysvipc/test-sysvipc.h
sysvipc/test-sysvmsg.c