OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::SockOpt::Creds Struct Reference

#include <peercred.hpp>

Public Member Functions

 Creds (const int uid_arg=-1, const int gid_arg=-1, const int pid_arg=-1)
 
bool root_or_self_uid () const
 
bool root_uid () const
 
bool match_uid (const uid_t other_uid) const
 

Public Attributes

uid_t uid
 
uid_t gid
 
pid_t pid
 

Detailed Description

Definition at line 28 of file peercred.hpp.

Constructor & Destructor Documentation

◆ Creds()

openvpn::SockOpt::Creds::Creds ( const int  uid_arg = -1,
const int  gid_arg = -1,
const int  pid_arg = -1 
)
inline

Definition at line 30 of file peercred.hpp.

Member Function Documentation

◆ match_uid()

bool openvpn::SockOpt::Creds::match_uid ( const uid_t  other_uid) const
inline

Definition at line 47 of file peercred.hpp.

◆ root_or_self_uid()

bool openvpn::SockOpt::Creds::root_or_self_uid ( ) const
inline

Definition at line 37 of file peercred.hpp.

◆ root_uid()

bool openvpn::SockOpt::Creds::root_uid ( ) const
inline

Definition at line 42 of file peercred.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ gid

uid_t openvpn::SockOpt::Creds::gid

Definition at line 53 of file peercred.hpp.

◆ pid

pid_t openvpn::SockOpt::Creds::pid

Definition at line 54 of file peercred.hpp.

◆ uid

uid_t openvpn::SockOpt::Creds::uid

Definition at line 52 of file peercred.hpp.


The documentation for this struct was generated from the following file: