Package DE_EPAGES::Core::API::SELinux
This module provides SELinux functions.
Example |
use DE_EPAGES::Core::API::SELinux qw( SetSELinuxContext ); |
@EXPORT_OK |
Functions
SELinuxEnabled
Shows whether SELinux is enabled or not.
Syntax |
$Result = SELinuxEnabled($hFlags); |
Example |
return unless SELinuxEnabled(); |
Return |
|
SetSELinuxContext
Sets SELinux context (if SELinuxEnabled) in $Path with $hFlags as defined by chcon (see man chcon)
Syntax |
SetSELinuxContext($Path, $hFlags); |
Example |
SetSELinuxContext( "$ENV{EPAGES_WEBROOT}/StoreTypes", {type => 'httpd_sys_content_t'} ); |
Input |
|