GIT – One of the most common ways for hackers to break into a system is to exploit buffer overflows. How do I turn on buffer overflow protection under operating system just like /  system?

Sun Solaris UNIX provide protection against buffer overflows. It can detect, log, and prevent such attempts to execute code on the stack. You need update the /etc/system , which provides a static mechanism for adjusting the values of parameters. Values specified in this file are read at boot time and are applied. Any changes that are made to the file are not applied to the operating system until the system is rebooted.

Open /etc/system file, enter:

# cp /etc/system /etc/system.old
# vi /etc/system

Add / modify the following lines:

set noexec_user_stack=1
set noexec_user_stack_log=1


  • noexec_user_stack=1 : Turn on buffer overflow protection
  • set noexec_user_stack_log=1 : Enable the Logging of Executable Stack Messages.

Finally, reboot the system:

# init 6

Print Friendly, PDF & Email



Bài viết liên quan