Ocean
Ocean::Platform::Linux::Utilities Class Reference

This class implements utility functions for Linux platforms. More...

Static Public Member Functions

static bool checkSecurityEnhancedLinuxStateIsPermissive ()
 Checks the security enhanced linux state (SELinux). More...
 

Protected Types

using ScopedFILE = ScopedObjectCompileTimeT< FILE *, FILE *, int, pclose, 0, false >
 Definition of a scoped object for FILE pointers. More...
 

Detailed Description

This class implements utility functions for Linux platforms.

Member Typedef Documentation

◆ ScopedFILE

using Ocean::Platform::Linux::Utilities::ScopedFILE = ScopedObjectCompileTimeT<FILE*, FILE*, int, pclose, 0, false >
protected

Definition of a scoped object for FILE pointers.

Member Function Documentation

◆ checkSecurityEnhancedLinuxStateIsPermissive()

static bool Ocean::Platform::Linux::Utilities::checkSecurityEnhancedLinuxStateIsPermissive ( )
static

Checks the security enhanced linux state (SELinux).

Can be toggled with "setenforce 0" or "setenforce 1".

Returns
True, if the SELinux state is permissive; False, if the SELinux state is enforcing
True, if the state could be determined

The documentation for this class was generated from the following file: