sefcontext_compile(8) | SELinux Command Line documentation | sefcontext_compile(8) |
sefcontext_compile - compile file context regular expression files
sefcontext_compile [-o outputfile] [-p policyfile] inputfile
sefcontext_compile is used to compile file context regular expressions into pcre(3) format.
The compiled file is used by libselinux file labeling functions.
By default sefcontext_compile writes the compiled pcre file with the .bin suffix appended (e.g. inputfile.bin).
On error -1 is returned. On success 0 is returned.
Example 1:
sefcontext_compile /etc/selinux/targeted/contexts/files/file_contexts
Results in the following file being generated:
Example 2:
sefcontext_compile -o new_fc.bin
/etc/selinux/targeted/contexts/files/file_contexts
Results in the following file being generated in the cwd:
Dan Walsh, <dwalsh@redhat.com>
12 Aug 2015 | dwalsh@redhat.com |