Writing Targeted Policies for SELinux on Red Hat Enterprise Linux

This course teaches the development of SELinux policies that extend the Red Hat Enterprise Linux (RHEL) targeted policy set. It focuses on developing SELinux policies with the help of development tools included in RHEL, especially the sepolicy generate and audit2allow commands.

Audience

IT professionals responsible for securing applications running on Linux servers, such as:

  • System Administrators

  • Site Reliability Engineers

  • Application Developers

Prerequisites

Learners are expected to have experience managing RHEL servers, and some familiarity with managing SELinux on RHEL.

If you’re not new to SELinux but need a refresher on it’s day-to-day administration, please review:

If you need an overview of SELinux, please review the following conceptual introduction:

Classroom Environment

For now, there are no virtual labs for performing hands-on activities. You just need a RHEL server or VM with root access and from which you can download RPM packages from Red Hat repositories or a Yum mirror.

As course development progresses, some Red Hat Training course classroom or Red Hat Demo workshop environment will be selected as ready-to-use environments for hands-on activities.

You can also try these activities directly on your day-to-day machine or a local VM where you have installed RHEL.

If you do not have a test machine readily available, but you have access to a Red Hat Learning Subscription (as all Red Hat employees and partners do) you can use the virtual lab environment from Red Hat System Administration II (RH134). You can use either servera or serverb machines to perform all the activities in this course.

This course was tested with the RHEL 9.3 version of the RH134 classroom, but is expected to work with older and newer releases of that course classroom.

To use RH134 as your virtual lab for hands-on activities, please follow one of the following links:

Additional Red Hat Training About SELinux

If you are new to SELinux on RHEL, you are strongly advised to start by reviewing the following content from Red Hat Training courses:

For Red Hat Customers and Partners with a Learning Subscription

Other Sources of Information About SELinux

Of course, the ultimate sources of information about SELinux are the Red Hat Enterprise Linux product documentation and the upstream sources from the Fedora Project and the SELinux project.

Author

Fernando Lozano
Training Content Architect
Red Hat - Product Portfolio Marketing & Learning

Based on previous work by Lukas Vrabec and Paul Armstrong.