Kernel de Linux - SElinux 与 socket

En este artículo, solo quiero entender por qué socket () necesita que se llame a root en X86 en lugar de Arm! Root!

/*
	世界上所有的网络传输交换都是下面这几个sys call来实现的,
	从这个系统调用开始吧, 
	揭开selinux 与 socket、root之间的神秘面纱

	参数有3个,所以叫做SYSCALL_DEFINE3. 
*/
SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol)
{
    
    
	return __sys_socket(family, type, protocol);
}

Supongo que te gusta

Origin blog.csdn.net/leesagacious/article/details/97175506
Recomendado
Clasificación