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

Des*_*ume 12 security kernel

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

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

sudo sysctl -w kernel.exec-shield=1
Run Code Online (Sandbox Code Playgroud)

但它说

error: "kernel.exec-shield" is an unknown key
Run Code Online (Sandbox Code Playgroud)

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

小智 8

Ubuntu 默认启用 NX 保护。这要么在 CPU 支持时使用硬件 NX,要么在内核中使用 NX 仿真(相当于 Red Hat Exec Shield 补丁)。

更多信息,请访问:https : //wiki.ubuntu.com/Security/Features

更具体地说:https : //wiki.ubuntu.com/Security/Features#nx