limal::apparmor_control::ApparmorControl Class Reference
AppArmor service control functions.
More...
#include <ApparmorControl.hpp>
List of all members.
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] | script | The 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] | script | The 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
The documentation for this class was generated from the following file: