mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:52:44 +00:00 
			
		
		
		
	Kernel: Add "video" pledge for accessing framebuffer devices
WindowServer becomes the only user.
This commit is contained in:
		
							parent
							
								
									bb6b9d9059
								
							
						
					
					
						commit
						017b34e1ad
					
				
					 5 changed files with 28 additions and 23 deletions
				
			
		|  | @ -10,7 +10,7 @@ | |||
| 
 | ||||
| int main(int, char**) | ||||
| { | ||||
|     if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec fattr", nullptr) < 0) { | ||||
|     if (pledge("stdio video shared_buffer rpath wpath cpath unix proc exec fattr", nullptr) < 0) { | ||||
|         perror("pledge"); | ||||
|         return 1; | ||||
|     } | ||||
|  | @ -35,7 +35,7 @@ int main(int, char**) | |||
| 
 | ||||
|     WSEventLoop loop; | ||||
| 
 | ||||
|     if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) { | ||||
|     if (pledge("stdio video shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) { | ||||
|         perror("pledge"); | ||||
|         return 1; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling