mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:02:45 +00:00 
			
		
		
		
	WindowServer: unveil("/bin", "x") so we can start applications
Without this, we can't start programs via the system menu. This begs the question: should WindowServer really be allowed to fork and exec in the first place?
This commit is contained in:
		
							parent
							
								
									22cfb1f3bd
								
							
						
					
					
						commit
						05a2a0c492
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -110,6 +110,11 @@ int main(int, char**) | ||||||
|         return 1; |         return 1; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     if (unveil("/bin", "x") < 0) { | ||||||
|  |         perror("unveil"); | ||||||
|  |         return 1; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     if (unveil(nullptr, nullptr) < 0) { |     if (unveil(nullptr, nullptr) < 0) { | ||||||
|         perror("unveil"); |         perror("unveil"); | ||||||
|         return 1; |         return 1; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling