mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:32:45 +00:00 
			
		
		
		
	SystemMonitor: Remove unveiling /tmp/portal/config
This commit is contained in:
		
							parent
							
								
									4d03852190
								
							
						
					
					
						commit
						1c59cfa28c
					
				
					 1 changed files with 2 additions and 7 deletions
				
			
		|  | @ -108,6 +108,8 @@ int main(int argc, char** argv) | |||
| 
 | ||||
|     auto app = GUI::Application::construct(argc, argv); | ||||
| 
 | ||||
|     Config::pledge_domains("SystemMonitor"); | ||||
| 
 | ||||
|     if (unveil("/etc/passwd", "r") < 0) { | ||||
|         perror("unveil"); | ||||
|         return 1; | ||||
|  | @ -159,15 +161,8 @@ int main(int argc, char** argv) | |||
|         return 1; | ||||
|     } | ||||
| 
 | ||||
|     if (unveil("/tmp/portal/config", "rw") < 0) { | ||||
|         perror("unveil"); | ||||
|         return 1; | ||||
|     } | ||||
| 
 | ||||
|     unveil(nullptr, nullptr); | ||||
| 
 | ||||
|     Config::pledge_domains("SystemMonitor"); | ||||
| 
 | ||||
|     const char* args_tab = "processes"; | ||||
|     Core::ArgsParser parser; | ||||
|     parser.add_option(args_tab, "Tab, one of 'processes', 'graphs', 'fs', 'hardware', or 'network'", "open-tab", 't', "tab"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ralf Donau
						Ralf Donau