#include <ApparmorReporting.hpp>
Public Member Functions | |
| ApparmorReportingConfig (BLOCXX_NAMESPACE::String &xmlPath="/etc/apparmor/reports.conf", BLOCXX_NAMESPACE::String &crontabPath="/etc/apparmor/reports.crontab") | |
| ~ApparmorReportingConfig () | |
| ReportConfig | readConfig () |
| bool | writeConfig (ReportConfig &config) |
| void | removeReport (BLOCXX_NAMESPACE::String &name) |
| void | writeReport (BLOCXX_NAMESPACE::String ¤tName, BLOCXX_NAMESPACE::String &newName, ReportData &reportData) |
| bool | reportExists (BLOCXX_NAMESPACE::String &name) |
| ReportData | findReport (BLOCXX_NAMESPACE::String &name) |
| BLOCXX_NAMESPACE::String | getXMLPath () |
| void | setXMLPath (BLOCXX_NAMESPACE::String &xmlPath) |
| BLOCXX_NAMESPACE::String | getCrontabPath () |
| void | setCrontabPath (BLOCXX_NAMESPACE::String &crontabPath) |
Private Member Functions | |
| void | loadXML () |
| BLOCXX_NAMESPACE::String | find_text (xmlNodePtr currentElement, char *tag) |
| BLOCXX_NAMESPACE::String | find_attribute (xmlNodePtr currentElement, char *tag, char *attribute) |
| bool | find_crontab_data (ReportData &data) |
Private Attributes | |
| BLOCXX_NAMESPACE::COWIntrusiveReference< Data > | m_data |
|
||||||||||||
|
Construct a ApparmorReporting object. |
|
|
Destructor of ApparmorReporting. |
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
Returns the data from an individual report.
|
|
|
Returns the path to reports.crontab.
|
|
|
Returns the path to reports.conf.
|
|
|
|
|
|
Parses the XML and returns a map of structs containing the data.
|
|
|
Removes an entry from disk. Note that none of the three "special" reports are allowed to be removed from the configuration file.
|
|
|
Returns true if there is a report by that name.
|
|
|
Sets the path to reports.crontab.
|
|
|
Sets the path to reports.conf.
|
|
|
Writes the config map to reports.conf and reports.crontab.
|
|
||||||||||||||||
|
Modifies an existing report or inserts a new one.
|
|
|
|
1.4.6