sefcontext_compile - Online Linux Manual PageSection : 8
Updated : 12 Aug 2015
Source : dwalsh@redhat.com
Note : SELinux Command Line documentation
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. 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 VALUEOn error -1 is returned. On success 0 is returned.
EXAMPLESExample 1:
sefcontext_compile /etc/selinux/targeted/contexts/files/file_contexts Results in the following file being generated: /etc/selinux/targeted/contexts/files/file_contexts.bin 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: new_fc.bin
AUTHORDan Walsh, <dwalsh@redhat.com>
SEE ALSOselinux(8), semanage(8), 0
Johanes Gumabo
Data Size : 5,608 byte
man-sefcontext_compile.8Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 262,387
Visitor ID : :
Visitor IP : 18.191.103.29 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.