prctl: exe link permission error changed from -EINVAL to -EPERM
authorNicolas Viennot <Nicolas.Viennot@twosigma.com>
Sun, 19 Jul 2020 10:04:16 +0000 (12:04 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 19 Jul 2020 18:14:42 +0000 (20:14 +0200)
commit227175b2c914bfa4a9aa5b210c7cabd42c5858ac
tree72675546bec953b554ae04ecacf91066dd4d4e69
parentebd6de6812387a2db9a52842cfbe004da1dd3be8
prctl: exe link permission error changed from -EINVAL to -EPERM

This brings consistency with the rest of the prctl() syscall where
-EPERM is returned when failing a capability check.

Signed-off-by: Nicolas Viennot <Nicolas.Viennot@twosigma.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Link: https://lore.kernel.org/r/20200719100418.2112740-7-areber@redhat.com
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
kernel/sys.c