thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Systems & Data Center · Advanced

semanage

The SELinux policy management tool for persistently configuring file contexts, port labels, booleans and user mappings.

Definition

semanage fcontext -a adds file context rules, semanage port -a labels non-standard ports for a service and semanage boolean manages booleans. It is provided by the policycoreutils-python-utils package on RHEL.

Example

semanage port -a -t http_port_t -p tcp 8081 lets Apache listen on port 8081.

Exam tip

Running a service on a non-standard port under SELinux requires semanage port to label it.

Related terms