mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:42:45 +00:00 
			
		
		
		
	Userland: Tighten a *lot* of pledges! :^)
Since applications using Core::EventLoop no longer need to create a socket in /tmp/rpc/, and also don't need to listen for incoming connections on this socket, we can remove a whole bunch of pledges!
This commit is contained in:
		
							parent
							
								
									04d78adaf7
								
							
						
					
					
						commit
						31d4bcf5bf
					
				
					 59 changed files with 97 additions and 163 deletions
				
			
		|  | @ -14,7 +14,7 @@ | |||
| 
 | ||||
| int main(int argc, char** argv) | ||||
| { | ||||
|     if (pledge("stdio inet unix recvfd sendfd cpath rpath fattr wpath cpath", nullptr) < 0) { | ||||
|     if (pledge("stdio inet unix recvfd sendfd cpath rpath wpath", nullptr) < 0) { | ||||
|         perror("pledge"); | ||||
|         return 1; | ||||
|     } | ||||
|  | @ -26,11 +26,6 @@ int main(int argc, char** argv) | |||
| 
 | ||||
|     auto app = GUI::Application::construct(argc, argv); | ||||
| 
 | ||||
|     if (pledge("stdio inet unix recvfd sendfd rpath wpath cpath", nullptr) < 0) { | ||||
|         perror("pledge"); | ||||
|         return 1; | ||||
|     } | ||||
| 
 | ||||
|     if (unveil("/tmp/portal/lookup", "rw") < 0) { | ||||
|         perror("unveil"); | ||||
|         return 1; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling