USBGuard
Software framework that protects your computer against rogue USB devices by implementing basic whitelisting and blacklisting capabilities.
Public Member Functions | List of all members
usbguard::AuditIdentity Class Reference

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...
 

Detailed Description

Represents the audit identity.

Constructor & Destructor Documentation

◆ AuditIdentity()

usbguard::AuditIdentity::AuditIdentity ( uid_t  uid,
pid_t  pid 
)

Constructs audit identity with given UID and PID.

Parameters
uidReal user ID.
pidProccess ID.

Member Function Documentation

◆ pid()

pid_t usbguard::AuditIdentity::pid ( ) const

Returns proccess ID of this audit identity.

Returns
Proccess ID of this audit identity.

◆ toString()

std::string usbguard::AuditIdentity::toString ( ) const

Returns string representation of this audit identity.

Format: { uid=<UID> pid=<PID> }

Returns
String representation of this audit identity.

◆ uid()

uid_t usbguard::AuditIdentity::uid ( ) const

Returns real user ID of this audit identity.

Returns
Real user ID of this audit identity.

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