USBGuard
Software framework that protects your computer against rogue USB devices by implementing basic whitelisting and blacklisting capabilities.
|
Represents the audit identity. More...
#include <Audit.hpp>
Public Member Functions | |
AuditIdentity () | |
Constructs audit identity with real user ID and proccess ID of the calling proccess. | |
AuditIdentity (uid_t uid, pid_t pid) | |
Constructs audit identity with given UID and PID. More... | |
uid_t | uid () const |
Returns real user ID of this audit identity. More... | |
pid_t | pid () const |
Returns proccess ID of this audit identity. More... | |
std::string | toString () const |
Returns string representation of this audit identity. More... | |
Represents the audit identity.
usbguard::AuditIdentity::AuditIdentity | ( | uid_t | uid, |
pid_t | pid | ||
) |
Constructs audit identity with given UID and PID.
uid | Real user ID. |
pid | Proccess ID. |
pid_t usbguard::AuditIdentity::pid | ( | ) | const |
Returns proccess ID of this audit identity.
std::string usbguard::AuditIdentity::toString | ( | ) | const |
Returns string representation of this audit identity.
Format: { uid=<UID> pid=<PID> }
uid_t usbguard::AuditIdentity::uid | ( | ) | const |
Returns real user ID of this audit identity.