mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 16:13:35 +00:00
Support __NR_set_ns as well.
Apparently some older systems didn't have __NR_setns but had __NR_set_ns. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
e43157b4b2
commit
92e23841a2
@ -56,6 +56,8 @@ static inline int setns(int fd, int nstype)
|
||||
{
|
||||
#ifdef __NR_setns
|
||||
return syscall(__NR_setns, fd, nstype);
|
||||
#elif __NR_set_ns
|
||||
return syscall(__NR_set_ns, fd, nstype);
|
||||
#else
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user