sefcontext_compile (8) - Linux Manuals
sefcontext_compile: compile file context regular expression files
NAMEsefcontext_compile - compile file context regular expression files
SYNOPSISsefcontext_compile [-o outputfile] [-p policyfile] inputfile
DESCRIPTIONsefcontext_compile is used to compile file context regular expressions into pcre(3) format.
The compiled file is used by libselinux file labeling functions.
- Specify an outputfile that must be a fully qualified file name as the .bin suffix is not automatically added.
Specify a binary
that will be used to validate the context entries in the
If an invalid context is found the pcre formatted file will not be written and an error will be returned.
RETURN VALUEOn error -1 is returned. On success 0 is returned.
Results in the following file being generated:
sefcontext_compile -o new_fc.bin /etc/selinux/targeted/contexts/files/file_contexts
Results in the following file being generated in the cwd: