This is needed for users on kernel older than 3.18 so they can avoid EBUSY errors when trying to unlink, rename or remove a mountpoint that is present in a shim namespace. Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
		
			
				
	
	
		
			19 lines
		
	
	
		
			256 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			256 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// +build !linux,!windows
 | 
						|
 | 
						|
package shim
 | 
						|
 | 
						|
import (
 | 
						|
	"os/exec"
 | 
						|
	"syscall"
 | 
						|
)
 | 
						|
 | 
						|
func getSysProcAttr(nonewns bool) *syscall.SysProcAttr {
 | 
						|
	return &syscall.SysProcAttr{
 | 
						|
		Setpgid: true,
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
func setCgroup(cgroupPath string, cmd *exec.Cmd) error {
 | 
						|
	return nil
 | 
						|
}
 |