- Lab
- A Cloud Guru
Linux Kernel Security
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.
Path Info
Table of Contents
-
Challenge
Create a Text File for the Kernel Parameters
- Run the following command:
touch /home/cloud_user/investigate.txt
-
Challenge
Install the Kernel Documentation
- Run the following command:
sudo yum install kernel-doc
-
Challenge
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
-
Challenge
Find and Document the Values of All ICMP Kernel Parameters
- Run the following command:
sysctl –ar icmp >> investigate.txt
-
Challenge
Temporarily Disable ICMP Using a Kernel Parameter
- Run the following command:
sudo sysctl –w net.ipv4.icmp_echo_ignore_all=1
-
Challenge
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
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.