mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:52:44 +00:00 
			
		
		
		
	 e87eac9273
			
		
	
	
		e87eac9273
		
	
	
	
	
		
			
			This achieves two things: - Programs can now intentionally perform arbitrary syscalls by calling syscall(). This allows us to work on things like syscall fuzzing. - It restricts the ability of userspace to make syscalls to a single 4KB page of code. In order to call the kernel directly, an attacker must now locate this page and call through it.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			188 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			188 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(SOURCES
 | |
|     syscall.cpp
 | |
| )
 | |
| 
 | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib")
 | |
| serenity_libc(LibSystem system)
 | |
| target_include_directories(LibSystem PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
 |