Ubuntu是否有Exec Shield缓冲区溢出保护?


12

Ubuntu是否有Exec Shield缓冲区溢出保护?

我尝试使用以下命令在Ubuntu 12.04上启用Exec Shield

sudo sysctl -w kernel.exec-shield=1

但它说

error: "kernel.exec-shield" is an unknown key

如果没有,那么Ubuntu的等效解决方案是什么?如何安装和启用它?

Answers:



0

打开/etc/sysctl.conf文件:

# sudo gedit /etc/sysctl.conf
#### Add the following lines:

###enable ExecShield protection

kernel.exec-shield = 1

###enable random placement of virtual memory regions protection

kernel.randomize_va_space = 1

  保存并关闭文件。   

要加载sysctl而无需重新启动,请在::下键入以下命令:
sysctl -p


2
您可以确认Ubuntu支持kernel.exec-shield键吗?最后我检查了没有。到目前为止,这似乎是Red Hat / Fedora的功能。
凯文·鲍文
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.