mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 12:11:02 +00:00
UPSTREAM: 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. Change-Id: I1b27a485d4ca9dd99376c6628572509835aabaf3 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> Signed-off-by: ralph950412 <ralph950412@gmail.com> Signed-off-by: rsuntk <rissu.ntk@gmail.com>
This commit is contained in:
committed by
Edwin Moquete
parent
5120b8354f
commit
e86efe1e99
@ -2022,7 +2022,7 @@ static int prctl_set_mm_map(int opt, const void __user *addr, unsigned long data
|
||||
* This may have implications in the tomoyo subsystem.
|
||||
*/
|
||||
if (!checkpoint_restore_ns_capable(current_user_ns()))
|
||||
return -EINVAL;
|
||||
return -EPERM;
|
||||
|
||||
error = prctl_set_mm_exe_file(mm, prctl_map.exe_fd);
|
||||
if (error)
|
||||
|
||||
Reference in New Issue
Block a user