Many important security configurations can be set using kernel parameters. In this hands-on lab, we will learn how to find and modify these parameters using various utilities. These skills are essential for passing advanced security certification exams such as the LPIC 303-200 exam.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create a Text File for the Kernel Parameters
- Run the following command:
touch /home/cloud_user/investigate.txt
- Run the following command:
- Install the Kernel Documentation
- Run the following command:
sudo yum install kernel-doc
- Run the following command:
- Find and Document the Value of the `randomize_va_space` Parameter
- View the value of the
randomize_va_space
parameter by running the following command:sysctl -ar randomize_va
- Add the value to the
investigate.txt
file.sysctl -ar randomize_va >> investigate.txt
- View the value of the
- Find and Document the Values of All ICMP Kernel Parameters
- Run the following command:
sysctl –ar icmp >> investigate.txt
- Run the following command:
- Temporarily Disable ICMP Using a Kernel Parameter
- Run the following command:
sudo sysctl –w net.ipv4.icmp_echo_ignore_all=1
- Run the following command:
- Find and Document the Current Kernel Security Limits
- View the contents of
/etc/security/limits.conf
.vim /etc/security/limits.conf
- Write the contents of
/etc/security/limits.conf
toinvestigate.txt
.cat /etc/security/limits.conf >> investigate.txt
- Locate the current security limits for
cloud_user
.ulimit -a
- Write the output of the
ulimit -a
command toinvestigate.txt
.ulimit -a >> investigate.txt
- View the contents of