mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:42:45 +00:00 
			
		
		
		
	Kernel: Remove pledge syscall from the big lock
This already does all its dangerous work inside `with_mutable_protected_data()`.
This commit is contained in:
		
							parent
							
								
									ce78394ae8
								
							
						
					
					
						commit
						cc558d95f0
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -11,7 +11,7 @@ namespace Kernel { | |||
| 
 | ||||
| ErrorOr<FlatPtr> Process::sys$pledge(Userspace<Syscall::SC_pledge_params const*> user_params) | ||||
| { | ||||
|     VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); | ||||
|     VERIFY_NO_PROCESS_BIG_LOCK(this); | ||||
|     auto params = TRY(copy_typed_from_user(user_params)); | ||||
| 
 | ||||
|     if (params.promises.length > 1024 || params.execpromises.length > 1024) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins