MySQL 9.0.0
Source Code Documentation
sys_user_operations.h File Reference
#include <netdb.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string>

Go to the source code of this file.

Classes

class  mysqlrouter::SysUserOperationsBase
 Base class to allow multiple SysUserOperations implementations. More...
 
class  mysqlrouter::SysUserOperations
 This class provides implementations of SysUserOperationsBase methods. More...
 

Namespaces

namespace  mysqlrouter
 

Functions

void mysqlrouter::set_owner_if_file_exists (const std::string &filepath, const std::string &username, struct passwd *user_info_arg, mysqlrouter::SysUserOperationsBase *sys_user_operations)
 Sets the owner of selected file/directory if it exists. More...
 
void mysqlrouter::set_user (const std::string &username, bool permanently=false, mysqlrouter::SysUserOperationsBase *sys_user_operations=SysUserOperations::instance())
 Sets effective user of the calling process. More...
 
struct passwd * mysqlrouter::check_user (const std::string &username, bool must_be_root, mysqlrouter::SysUserOperationsBase *sys_user_operations)
 Checks if the given user can be switched to or made an owner of a selected file. More...