Kernel: load module 加载错误

modprobe: ERROR: could not insert ‘8021q’: Operation not permitted

需要CAP_SYS_MODULE

static int may_init_module(void)
{
if (!capable(CAP_SYS_MODULE) || modules_disabled)
return -EPERM;
return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_36428903/article/details/126266961