Skip to content

Commit

Permalink
Merge pull request #2543 from giuseppe/fix-rootless-s390x-cris
Browse files Browse the repository at this point in the history
rootless: fix clone syscall on s390 and cris archs
  • Loading branch information
openshift-merge-robot authored Mar 6, 2019
2 parents 2dc8568 + ca5114f commit 7418ff9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/rootless/rootless_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 **
Expand Down

0 comments on commit 7418ff9

Please sign in to comment.