mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-31 04:32:20 -06:00 
			
		
		
		
	POSIX shell does not yet support `<(process substitution)`. Signed-off-by: Christian Kastner <ckk@kvr.at>
		
			
				
	
	
		
			20 lines
		
	
	
		
			468 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			468 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| # usage: ./bubbleparty.sh ./copyparty-sfx.py ....
 | |
| bwrap \
 | |
|   --unshare-all \
 | |
|   --ro-bind /usr /usr \
 | |
|   --ro-bind /bin /bin \
 | |
|   --ro-bind /lib /lib \
 | |
|   --ro-bind /etc/resolv.conf /etc/resolv.conf \
 | |
|   --dev-bind /dev /dev \
 | |
|   --dir /tmp \
 | |
|   --dir /var \
 | |
|   --bind "$(pwd)" "$(pwd)" \
 | |
|   --share-net \
 | |
|   --die-with-parent \
 | |
|   --file 11 /etc/passwd \
 | |
|   --file 12 /etc/group \
 | |
|   "$@" \
 | |
|   11< <(getent passwd $(id -u) 65534) \
 | |
|   12< <(getent group $(id -g) 65534) 
 |