mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:42:43 +00:00 
			
		
		
		
	
							parent
							
								
									79e79ad1d2
								
							
						
					
					
						commit
						0c1497846e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -4511,6 +4511,8 @@ int Process::sys$profiling_enable(pid_t pid) | |||
|     auto* process = Process::from_pid(pid); | ||||
|     if (!process) | ||||
|         return -ESRCH; | ||||
|     if (process->is_dead()) | ||||
|         return -ESRCH; | ||||
|     if (!is_superuser() && process->uid() != m_uid) | ||||
|         return -EPERM; | ||||
|     Profiling::start(*process); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling