Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

7.9. Kernel configuration -Part "E"

Security options. Security options will appear only if you have patched your kernel with the Openwall Project patch.
                  
               Non-executable user stack area (CONFIG_SECURE_STACK) Y
               Autodetect and emulate GCC trampolines (CONFIG_SECURE_STACK_SMART) Y
               Restricted links in /tmp (CONFIG_SECURE_LINK) Y
               Restricted FIFOs in /tmp (CONFIG_SECURE_FIFO) Y
               Restricted /proc (CONFIG_SECURE_PROC) N Y
               Special handling of fd 0, 1, and 2 (CONFIG_SECURE_FD_0_1_2) Y
               Enforce RLIMIT_NPROC on execve(2) (CONFIG_SECURE_RLIMIT_NPROC) Y
               Destroy shared memory segments not in use (CONFIG_SECURE_SHM) N Y
             

Kernel hacking.
             Magic SysRq key (CONFIG_MAGIC_SYSRQ) N/y/?
             

Now, return to the /usr/src/linux/ directory, if you are not already in it. You need to compile the new kernel. You do so by using the following command:
           [root@deep ] /linux# make dep; make clean; make bzImage
           
This line contains three commands in one.

  • The first one, make dep, actually takes your configuration and builds the corresponding dependency tree. This process determines what gets compiled and what doesn't.

  • The next step, make clean, erase all previous traces of a compilation so as to avoid any mistakes in which version of a feature gets tied into the kernel.

  • Finally, make bzImage does the full compilation of the kernel.

After the process is complete, the kernel is compressed and ready to be installed on your system. Before we can install the new kernel, we must know if we need to compile the corresponding modules. This is required only if you said Yes to Enable loadable module support CONFIG_MODULES and have compiled some options in the kernel configuration above as a module. In this case, you must execute the following commands:
           [root@deep ] /linux#make modules
           [root@deep ] /linux#make modules_install
           

Note: The make modules and make modules_install commands are required only if you say Yes to Enable loadable module support CONFIG_MODULES in your kernel configuration above.

 
 
  Published under the terms of the Open Publication License Design by Interspire