selinux_restorecon_default_handle - Online Linux Manual PageSection : 3
Updated : 20 Oct 2015
Source : Security Enhanced Linux
Note : SELinux API documentation

NAMEselinux_restorecon_default_handle − sets default parameters for selinux_restorecon(3)

SYNOPSIS#include <selinux/restorecon.h>
#include <selinux/label.h> struct selabel_handle *selinux_restorecon_default_handle(void);"

DESCRIPTIONselinux_restorecon_default_handle() sets default parameters for selinux_restorecon(3) by calling selabel_open(3) with the SELABEL_OPT_DIGEST option only. This will enable a digest to be calculated on the currently loaded policy file_contexts(5) set of files as described in the NOTES section of selinux_restorecon(3). Calling selinux_restorecon_default_handle() is optional, however if used then selinux_restorecon_set_sehandle(3) should be called with the returned handle to set this for use by selinux_restorecon(3). selinux_restorecon_default_handle() is optional as selinux_restorecon(3) will automatically call this and selinux_restorecon_set_sehandle(3) provided a handle has not already been set, for example by selinux_restorecon_set_sehandle(3) to set customised selabel_open(3) parameters.

RETURN VALUEA non−NULL handle value is returned on success. On error, NULL is returned and errno is set appropriately.

SEE ALSOselinux_restorecon(3),
selinux_restorecon_set_sehandle(3),
selinux_restorecon_set_exclude_list(3),
selinux_restorecon_set_alt_rootpath(3),
selinux_restorecon_xattr(3)
0
Johanes Gumabo
Data Size   :   6,139 byte
man-selinux_restorecon_default_handle.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   7 / 260,459
Visitor ID   :     :  
Visitor IP   :   3.22.217.176   :  
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.