mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-06 13:29:37 +00:00
Tools: add setns system call
This commit is contained in:
parent
d601e17b10
commit
891b224a8f
@ -1185,4 +1185,9 @@ sub unshare($) {
|
||||
return 0 == syscall(272, $flags);
|
||||
}
|
||||
|
||||
sub setns($$) {
|
||||
my ($fileno, $nstype) = @_;
|
||||
return 0 == syscall(308, $fileno, $nstype);
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user