mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	Kernel+Userland: Remove the {get,set}_thread_name syscalls
These syscalls are not necessary on their own, and they give the false impression that a caller could set or get the thread name of any process in the system, which is not true. Therefore, move the functionality of these syscalls to be options in the prctl syscall, which makes it abundantly clear that these operations could only occur from a running thread in a process that sees other threads in that process only.
This commit is contained in:
		
							parent
							
								
									1458849850
								
							
						
					
					
						commit
						1c0aa51684
					
				
					 14 changed files with 54 additions and 63 deletions
				
			
		|  | @ -21,7 +21,7 @@ TEST_CASE(check_root) | |||
|     // If running as setuid, the process is automatically marked as non-dumpable, which bars access to /proc/self/.
 | ||||
|     // However, that is the easiest guess for a /proc/$PID/ directory, so we'd like to use that.
 | ||||
|     // In order to do so, mark this process as dumpable:
 | ||||
|     EXPECT_EQ(prctl(PR_SET_DUMPABLE, 1, 0), 0); | ||||
|     EXPECT_EQ(prctl(PR_SET_DUMPABLE, 1, 0, 0), 0); | ||||
| } | ||||
| 
 | ||||
| TEST_CASE(root_writes_to_procfs) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Liav A
						Liav A