mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:52:46 +00:00 
			
		
		
		
	
		
			
				
	
	
	
	
		
			838 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			838 B
		
	
	
	
	
	
	
	
Name
unveil - unveil certain paths when running a command
Synopsis
$ unveil [--path] [command...]
Description
Run a command under certain path restrictions by using unveil(2).
Options
- -u,- --path: Unveil a path, with the format of- permissions,path
Examples
Run ls -la /sys/kernel with restricted access to certain paths:
$ unveil --path=r,/etc/timezone --path=r,/usr/lib --path=r,/sys/ --path=r,/etc/passwd --path=r,/etc/group ls -la /sys/kernel
Run ps -ef with restricted access to certain paths:
$ unveil --path=r,/etc/timezone --path=r,/usr/lib --path=r,/sys/ --path=r,/etc/passwd --path=r,/etc/group ps -ef
