24 #include "DeviceManager.hpp" 27 #include "Typedefs.hpp" 32 #include <unordered_map> 35 #include <sys/types.h> 80 std::string toString()
const;
107 using Keys = std::unordered_map<std::string, std::string>;
150 const Keys& keys()
const;
163 void commit(
const std::string& result);
171 void setCommited(
bool state);
179 void setKey(
const std::string& key,
const std::string& value);
184 std::shared_ptr<AuditBackend> _backend;
214 virtual void write(
const AuditEvent& event) = 0;
251 void setBackend(std::unique_ptr<AuditBackend> backend);
261 void setHidePII(
bool hide_pii);
288 AuditEvent policyEvent(std::shared_ptr<Rule> rule, Policy::EventType event);
316 AuditEvent policyEvent(std::shared_ptr<Rule> new_rule, std::shared_ptr<Rule> old_rule);
344 AuditEvent policyEvent(std::shared_ptr<Device> device, Policy::EventType event);
427 AuditEvent deviceEvent(std::shared_ptr<Device> new_device, std::shared_ptr<Device> old_device);
484 AuditEvent policyEvent(
const AuditIdentity& identity, std::shared_ptr<Rule> new_rule, std::shared_ptr<Rule> old_rule);
513 AuditEvent policyEvent(
const AuditIdentity& identity, std::shared_ptr<Device> device, Policy::EventType event);
600 AuditEvent deviceEvent(
const AuditIdentity& identity, std::shared_ptr<Device> new_device, std::shared_ptr<Device> old_device);
604 std::shared_ptr<AuditBackend> _backend;
Describes policy or device event and its result that should be audited using given audit identity and...
Definition: Audit.hpp:93
Target
Enumeration of possible rule targets.
Definition: Rule.hpp:86
Represents the audit identity.
Definition: Audit.hpp:42
Commits and writes audit events into log.
Definition: Audit.hpp:195
Generates audit events for given policy or device events.
Definition: Audit.hpp:233
EventType
Type of event that took place on the device.
Definition: DeviceManager.hpp:51