MySQL 8.0.39
Source Code Documentation
mysqlrouter::SysUserOperations Class Reference

This class provides implementations of SysUserOperationsBase methods. More...

#include <sys_user_operations.h>

Inheritance diagram for mysqlrouter::SysUserOperations:
[legend]

Public Member Functions

int initgroups (const char *user, gid_type gid) override
 Thin wrapper around system initgroups() More...
 
int setgid (gid_t gid) override
 Thin wrapper around system setgid() More...
 
int setuid (uid_t uid) override
 Thin wrapper around system setuid() More...
 
int setegid (gid_t gid) override
 Thin wrapper around system setegid() More...
 
int seteuid (uid_t uid) override
 Thin wrapper around system seteuid() More...
 
uid_t geteuid () override
 Thin wrapper around system geteuid() More...
 
struct passwd * getpwnam (const char *name) override
 Thin wrapper around system getpwnam() More...
 
struct passwd * getpwuid (uid_t uid) override
 Thin wrapper around system getpwuid() More...
 
int chown (const char *file, uid_t owner, gid_t group) override
 Thin wrapper around system chown() More...
 
- Public Member Functions inherited from mysqlrouter::SysUserOperationsBase
virtual ~SysUserOperationsBase ()=default
 

Static Public Member Functions

static SysUserOperationsinstance ()
 

Private Member Functions

 SysUserOperations (const SysUserOperations &)=delete
 
SysUserOperations operator= (const SysUserOperations &)=delete
 
 SysUserOperations ()=default
 

Additional Inherited Members

- Public Types inherited from mysqlrouter::SysUserOperationsBase
using gid_type = gid_t
 

Detailed Description

This class provides implementations of SysUserOperationsBase methods.

Constructor & Destructor Documentation

◆ SysUserOperations() [1/2]

mysqlrouter::SysUserOperations::SysUserOperations ( const SysUserOperations )
privatedelete

◆ SysUserOperations() [2/2]

mysqlrouter::SysUserOperations::SysUserOperations ( )
privatedefault

Member Function Documentation

◆ chown()

int mysqlrouter::SysUserOperations::chown ( const char *  file,
uid_t  owner,
gid_t  group 
)
overridevirtual

Thin wrapper around system chown()

Implements mysqlrouter::SysUserOperationsBase.

◆ geteuid()

uid_t mysqlrouter::SysUserOperations::geteuid ( void  )
overridevirtual

Thin wrapper around system geteuid()

Implements mysqlrouter::SysUserOperationsBase.

◆ getpwnam()

struct passwd * mysqlrouter::SysUserOperations::getpwnam ( const char *  name)
overridevirtual

Thin wrapper around system getpwnam()

Implements mysqlrouter::SysUserOperationsBase.

◆ getpwuid()

struct passwd * mysqlrouter::SysUserOperations::getpwuid ( uid_t  uid)
overridevirtual

Thin wrapper around system getpwuid()

Implements mysqlrouter::SysUserOperationsBase.

◆ initgroups()

int mysqlrouter::SysUserOperations::initgroups ( const char *  user,
gid_type  gid 
)
overridevirtual

Thin wrapper around system initgroups()

Implements mysqlrouter::SysUserOperationsBase.

◆ instance()

SysUserOperations * mysqlrouter::SysUserOperations::instance ( )
static

◆ operator=()

SysUserOperations mysqlrouter::SysUserOperations::operator= ( const SysUserOperations )
privatedelete

◆ setegid()

int mysqlrouter::SysUserOperations::setegid ( gid_t  gid)
overridevirtual

Thin wrapper around system setegid()

Implements mysqlrouter::SysUserOperationsBase.

◆ seteuid()

int mysqlrouter::SysUserOperations::seteuid ( uid_t  uid)
overridevirtual

Thin wrapper around system seteuid()

Implements mysqlrouter::SysUserOperationsBase.

◆ setgid()

int mysqlrouter::SysUserOperations::setgid ( gid_t  gid)
overridevirtual

Thin wrapper around system setgid()

Implements mysqlrouter::SysUserOperationsBase.

◆ setuid()

int mysqlrouter::SysUserOperations::setuid ( uid_t  uid)
overridevirtual

Thin wrapper around system setuid()

Implements mysqlrouter::SysUserOperationsBase.


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