Thread (4 messages) flat view 4 messages, 3 authors, 2015-02-04

Re: [PATCH v2] selftests/exec: Check if the syscall exists and bail if not

From: Shuah Khan <hidden>
Date: 2015-02-03 15:32:47
Also in: lkml

On 02/03/2015 12:58 AM, David Drysdale wrote:
On Tue, Feb 3, 2015 at 3:53 AM, Michael Ellerman [off-list ref] wrote:
quoted
On systems which don't implement sys_execveat(), this test produces a
lot of output.

Add a check at the beginning to see if the syscall is present, and if
not just note one error and return.

When we run on a system that doesn't implement the syscall we will get
ENOSYS back from the kernel, so change the logic that handles
__NR_execveat not being defined to also use ENOSYS rather than -ENOSYS.

Signed-off-by: Michael Ellerman <mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
Acked-by: David Drysdale <redacted>
Thanks Michael, and David. I will queue this for 3.20

-- Shuah


-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org | (970) 217-8978
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help