CertGrid CertGrid
Hands-on Lab·Red Hat Certified System Administrator

SELinux File and Process Contexts

One objective covering files and processes. The whole of SELinux, for exam purposes, is that a process has a type and a file has a type, and policy either allows that pair or does not. Everything else in this track is about reading or changing one of those two types.

Security and SELinux Guide 56 of 67 Beginner

A context is user:role:type:level. On the targeted policy the type is what matters and the other three rarely change - which is why the shorthand "the context" almost always means the type field, and why every fix in this track is -t <something>_t.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

This guide includes

Use this for one objective covering both files and processes. This matters because everything on the system carries a context - you, your files, and the processes you run - and a confined process has a different one from you.

Before you start

  1. You, your files and your processes

  2. A confined process

Official sources