Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Security 保安在哪里?_Security_Linux Kernel_Kernel_Kernel Module - Fatal编程技术网

Security 保安在哪里?

Security 保安在哪里?,security,linux-kernel,kernel,kernel-module,Security,Linux Kernel,Kernel,Kernel Module,我正在使用Ubuntu 14.04。我正试图用gcc编写一个程序,但找不到它。我想知道如何包括它。它也不在我的include文件夹中。有没有关于如何使用或在make menuconfig中启用哪个选项以包含它的建议 谢谢您缺少内核头 sudo apt-get install linux-headers-generic 通常情况下 /usr/src/linux头文件-***/include/linux/security.h 其中***是您使用的内核版本号 如果您不确定是否使用,我建议您找到它 s

我正在使用Ubuntu 14.04。我正试图用gcc编写一个程序,但找不到它。我想知道如何包括它。它也不在我的include文件夹中。有没有关于如何使用或在make menuconfig中启用哪个选项以包含它的建议


谢谢

您缺少内核头

sudo apt-get install linux-headers-generic
通常情况下

/usr/src/linux头文件-***/include/linux/security.h

其中***是您使用的内核版本号

如果您不确定是否使用,我建议您找到它

sudo find / -name "security.h"
检查您首先运行的内核

uname -srm

确保内核标头存在。它应该是linux/security.h,在系统中包括。我有一个新的Ubuntu安装,但我没有在linux/中找到它。有什么建议吗?