Postby blogger3303 » 03 Aug 2014, 20:44
(This response mostly applies to Oracle Linux 6.5)
NX protection protects against Stack Buffer Overflow attacks.
It limits the ability of processors to have simultaneous write and execute access to memory.
You don't need it if you're not loading the enterprise kernel, or just playing around.
NX protection is found in the Oracle Linux kernel, often called "Unbreakable Enterprise Kernel".
It's also called Data Execution Prevention (DEP), to prevent buffer stacks from taking down your machine.
The technology is also found in RedHat Enterprise Linux,under a different syntax.
Determine what version you're using:
# uname -r | grep uek
If no value is returned, it's running RedHat.
############## For Oracle Linux ###################
Verify that Data Execution Prevention (DEP) feature is enabled:
# dmesg | grep NX.*protection
Should get something like "NX (Execute Disable) protection: active"
If it's empty, find out whether or not the kernal can actually handle NX processing:
# grep nx /proc/cpuinfo
If no values is returned, it's a no-go on the NX for your kernel.
By default DEP is enabled on Oracle Linux.
If DEP is not enabled, make sure "noexec=off" does not appear in /boot/grub/grub.conf
############## For Redhat Linux ###################
If you're running RedHat, and you want turn it on,
ensure that "kernel.exec-shield=1" appears in /etc/sysctl.conf.
(minus the double quotes)
Reboot the machine
For the Linux community.....