Merge pull request #2543 from giuseppe/fix-rootless-s390x-cris

rootless: fix clone syscall on s390 and cris archs
This commit is contained in:
OpenShift Merge Robot
2019-03-06 05:48:27 -08:00
committed by GitHub

View File

@ -32,7 +32,11 @@ syscall_setresgid (gid_t rgid, gid_t egid, gid_t sgid)
static int
syscall_clone (unsigned long flags, void *child_stack)
{
#if defined(__s390__) || defined(__CRIS__)
return (int) syscall (__NR_clone, child_stack, flags);
#else
return (int) syscall (__NR_clone, flags, child_stack);
#endif
}
static char **