December 2018
Beginner
320 pages
8h 57m
English
The semanage command writes the new context to the SELinux policy, which is used to apply the file context at the relabeling of the file labels or while setting the default file context using restorecon. It uses an extended regular expression to specify the path and filenames for applying those rules (new file context). The most commonly used extended regular expression with semanage fcontext is (/.*)?. This expression matches the directory listed before the expression and everything in that directory recursively.
An example of semanage command usage is shown in the following diagram:

The semange command ...
Read now
Unlock full access