limal-apparmor-control
Public Member Functions | Private Attributes

limal::apparmor_control::ApparmorControl Class Reference

AppArmor service control functions. More...

#include <ApparmorControl.hpp>

List of all members.

Public Member Functions

 ApparmorControl ()
 ~ApparmorControl ()
BLOCXX_NAMESPACE::String getPathToInitScript () const
void setpathToInitScript (const BLOCXX_NAMESPACE::String &script)
BLOCXX_NAMESPACE::String getPathToSubdomainStatusScript () const
void setPathToSubdomainStatusScript (const BLOCXX_NAMESPACE::String &script)
BLOCXX_NAMESPACE::Int32 startAppArmor ()
BLOCXX_NAMESPACE::Int32 stopAppArmor ()
BLOCXX_NAMESPACE::Int32 isEnabled ()

Private Attributes

BLOCXX_NAMESPACE::COWIntrusiveReference
< Data > 
m_data

Detailed Description

AppArmor service control functions.


Constructor & Destructor Documentation

limal::apparmor_control::ApparmorControl::ApparmorControl ( )
limal::apparmor_control::ApparmorControl::~ApparmorControl ( )

Member Function Documentation

BLOCXX_NAMESPACE::String limal::apparmor_control::ApparmorControl::getPathToInitScript ( ) const

Returns the path name to the AppArmor init script.

Returns:
The path name to the init script.
BLOCXX_NAMESPACE::String limal::apparmor_control::ApparmorControl::getPathToSubdomainStatusScript ( ) const

Returns the path name to the SubDomain status script.

Returns:
The path name to the init script.
BLOCXX_NAMESPACE::Int32 limal::apparmor_control::ApparmorControl::isEnabled ( )

Returns if AppArmor is enabled or not.

Returns:
0 if AppArmor is enabled, -1 if it is not.
void limal::apparmor_control::ApparmorControl::setpathToInitScript ( const BLOCXX_NAMESPACE::String &  script)

Sets the path name to the AppArmor init script.

Parameters:
[in]scriptThe path to the init script.
void limal::apparmor_control::ApparmorControl::setPathToSubdomainStatusScript ( const BLOCXX_NAMESPACE::String &  script)

Sets the path name to the SubDomain status script.

Parameters:
[in]scriptThe path to the status script.
BLOCXX_NAMESPACE::Int32 limal::apparmor_control::ApparmorControl::startAppArmor ( )

Calls the rc script's 'start' function.

Returns:
0 on success, -1 on failure.
BLOCXX_NAMESPACE::Int32 limal::apparmor_control::ApparmorControl::stopAppArmor ( )

Calls the rc script's 'stop' function.

Returns:
0 on success, -1 on failure.

Member Data Documentation

BLOCXX_NAMESPACE::COWIntrusiveReference<Data> limal::apparmor_control::ApparmorControl::m_data [private]

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