Man page - sefcontext_compile(8)
Packages contains this manual
- selabel_db(5)
- x_contexts(5)
- selabel_media(5)
- matchpathcon(8)
- selabel_x(5)
- getsebool(8)
- file_contexts.subs_dist(5)
- sepgsql_contexts(5)
- media(5)
- setenforce(8)
- default_contexts(5)
- failsafe_context(5)
- avcstat(8)
- file_contexts.local(5)
- seusers(5)
- file_contexts(5)
- service_seusers(5)
- customizable_types(5)
- user_contexts(5)
- getenforce(8)
- sefcontext_compile(8)
- selabel_file(5)
- selinux(8)
- togglesebool(8)
- file_contexts.homedirs(5)
- selinuxenabled(8)
- virtual_image_context(5)
- selinuxexeccon(8)
- virtual_domain_context(5)
- default_type(5)
- securetty_types(5)
- removable_context(5)
- file_contexts.subs(5)
- booleans(8)
- secolor.conf(5)
apt-get install selinux-utils
Manual
sefcontext_compile
NAMESYNOPSIS
DESCRIPTION
OPTIONS
RETURN VALUE
EXAMPLES
AUTHOR
SEE ALSO
NAME
sefcontext_compile - compile file context regular expression files
SYNOPSIS
sefcontext_compile [ -o outputfile ] [ -p policyfile ] inputfile
DESCRIPTION
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 ).
OPTIONS
|
-o |
Specify an outputfile that must be a fully qualified file name as the .bin suffix is not automatically added. |
||
|
-p |
Specify a binary policyfile that will be used to validate the context entries in the inputfile |
If an invalid context is found the pcre formatted file will not be written and an error will be returned.
RETURN VALUE
On error -1 is returned. On success 0 is returned.
EXAMPLES
Example
1:
sefcontext_compile
/etc/selinux/default/contexts/files/file_contexts
Results in the following file being generated:
/etc/selinux/default/contexts/files/file_contexts.bin
Example
2:
sefcontext_compile -o new_fc.bin
/etc/selinux/default/contexts/files/file_contexts
Results in the following file being generated in the cwd:
new_fc.bin
AUTHOR
Dan Walsh, <dwalsh@redhat.com>
SEE ALSO
selinux (8), semanage (8),