set_matchpathcon_flags - Online Linux Manual PageSection : 3
Updated : 21 November 2009
Source : sds@tycho.nsa.gov
Note : SELinux API documentation

NAMEset_matchpathcon_flags, set_matchpathcon_invalidcon, set_matchpathcon_printf − set flags controlling the operation of matchpathcon or matchpathcon_index and configure the behaviour of validity checking and error displaying

SYNOPSIS#include <selinux/selinux.h> void set_matchpathcon_flags(unsigned int flags); void set_matchpathcon_invalidcon(int (*f)(const char *path, unsigned lineno, char *context)); void set_matchpathcon_printf(void (*f)(const char *fmt, ...));

DESCRIPTIONset_matchpathcon_flags() sets the flags controlling the operation of matchpathcon_init(3) and subsequently matchpathcon_index(3) or matchpathcon(3). If the MATCHPATHCON_BASEONLY flag is set, then only the base file contexts configuration file will be processed, not any dynamically generated entries or local customizations. set_matchpathcon_invalidcon() sets the function used by matchpathcon_init(3) when checking the validity of a context in the file contexts configuration. If not set, then this defaults to a test based on security_check_context(3), which checks validity against the active policy on a SELinux system. This can be set to instead perform checking based on a binary policy file, e.g. using sepol_check_context(3), as is done by setfiles −c. The function is also responsible for reporting any such error, and may include the path and lineno in such error messages. set_matchpathcon_printf() sets the function used by matchpathcon_init(3) when displaying errors about the file contexts configuration. If not set, then this defaults to fprintf(stderr, fmt, ...). This can be set to redirect error reporting to a different destination.

RETURN VALUEReturns zero on success or −1 otherwise.

SEE ALSOselinux(8), matchpathcon (3), matchpathcon_index (3), set_matchpathcon_invalidcon (3), set_matchpathcon_printf (3), freecon (3), setfilecon (3), setfscreatecon (3)"
0
Johanes Gumabo
Data Size   :   6,676 byte
man-set_matchpathcon_invalidcon.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 202,846
Visitor ID   :     :  
Visitor IP   :   3.21.105.46   :  
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.05
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.