MySQL 9.1.0
Source Code Documentation
mysqlrouter::SysUserOperationsBase Class Referenceabstract

Base class to allow multiple SysUserOperations implementations. More...

#include <sys_user_operations.h>

Inheritance diagram for mysqlrouter::SysUserOperationsBase:
[legend]

Public Types

using gid_type = gid_t
 

Public Member Functions

virtual ~SysUserOperationsBase ()=default
 
virtual int initgroups (const char *user, gid_type gid)=0
 
virtual int setgid (gid_t gid)=0
 
virtual int setuid (uid_t uid)=0
 
virtual int setegid (gid_t gid)=0
 
virtual int seteuid (uid_t uid)=0
 
virtual uid_t geteuid (void)=0
 
virtual struct passwd * getpwnam (const char *name)=0
 
virtual struct passwd * getpwuid (uid_t uid)=0
 
virtual int chown (const char *file, uid_t owner, gid_t group)=0
 

Detailed Description

Base class to allow multiple SysUserOperations implementations.

Member Typedef Documentation

◆ gid_type

Constructor & Destructor Documentation

◆ ~SysUserOperationsBase()

virtual mysqlrouter::SysUserOperationsBase::~SysUserOperationsBase ( )
virtualdefault

Member Function Documentation

◆ chown()

virtual int mysqlrouter::SysUserOperationsBase::chown ( const char *  file,
uid_t  owner,
gid_t  group 
)
pure virtual

◆ geteuid()

virtual uid_t mysqlrouter::SysUserOperationsBase::geteuid ( void  )
pure virtual

◆ getpwnam()

virtual struct passwd * mysqlrouter::SysUserOperationsBase::getpwnam ( const char *  name)
pure virtual

◆ getpwuid()

virtual struct passwd * mysqlrouter::SysUserOperationsBase::getpwuid ( uid_t  uid)
pure virtual

◆ initgroups()

virtual int mysqlrouter::SysUserOperationsBase::initgroups ( const char *  user,
gid_type  gid 
)
pure virtual

◆ setegid()

virtual int mysqlrouter::SysUserOperationsBase::setegid ( gid_t  gid)
pure virtual

◆ seteuid()

virtual int mysqlrouter::SysUserOperationsBase::seteuid ( uid_t  uid)
pure virtual

◆ setgid()

virtual int mysqlrouter::SysUserOperationsBase::setgid ( gid_t  gid)
pure virtual

◆ setuid()

virtual int mysqlrouter::SysUserOperationsBase::setuid ( uid_t  uid)
pure virtual

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