Commits
Andrey Vagin authored and Pavel Emelyanov committed e2c7bc33704
ptrace:ptrace_attach: incorrect code returned in cases of success The retval is set to zero by __ptrace_may_access, so we can't set it after that. ptrace_attach will return EPERM instead of EACCES. it's more expected, because previous versions return EPERM and accoding to the man page ptrace can't return EACCES https://bugzilla.sw.ru/show_bug.cgi?id=473418 Signed-off-by: Andrew Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>