GRAYBYTE WORDPRESS FILE MANAGER9941

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/include/mysql/server/private/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/include/mysql/server/private//privilege.h
#ifndef PRIVILEGE_H_INCLUDED
#define PRIVILEGE_H_INCLUDED

/* Copyright (c) 2020, MariaDB Corporation.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335  USA */

#include "my_global.h" // ulonglong


/*
  A strict enum to store privilege bits.

  We should eventually make if even stricter using "enum class privilege_t" and:
  - Replace all code pieces like `if (priv)` to `if (priv != NO_ACL)`
  - Remove "delete" comparison operators below
*/
enum privilege_t: unsigned long long
{
  NO_ACL                = (0),
  SELECT_ACL            = (1UL << 0),
  INSERT_ACL            = (1UL << 1),
  UPDATE_ACL            = (1UL << 2),
  DELETE_ACL            = (1UL << 3),
  CREATE_ACL            = (1UL << 4),
  DROP_ACL              = (1UL << 5),
  RELOAD_ACL            = (1UL << 6),
  SHUTDOWN_ACL          = (1UL << 7),
  PROCESS_ACL           = (1UL << 8),
  FILE_ACL              = (1UL << 9),
  GRANT_ACL             = (1UL << 10),
  REFERENCES_ACL        = (1UL << 11),
  INDEX_ACL             = (1UL << 12),
  ALTER_ACL             = (1UL << 13),
  SHOW_DB_ACL           = (1UL << 14),
  SUPER_ACL             = (1UL << 15),
  CREATE_TMP_ACL        = (1UL << 16),
  LOCK_TABLES_ACL       = (1UL << 17),
  EXECUTE_ACL           = (1UL << 18),
  REPL_SLAVE_ACL        = (1UL << 19),
  BINLOG_MONITOR_ACL    = (1UL << 20), // Was REPL_CLIENT_ACL prior to 10.5.2
  CREATE_VIEW_ACL       = (1UL << 21),
  SHOW_VIEW_ACL         = (1UL << 22),
  CREATE_PROC_ACL       = (1UL << 23),
  ALTER_PROC_ACL        = (1UL << 24),
  CREATE_USER_ACL       = (1UL << 25),
  EVENT_ACL             = (1UL << 26),
  TRIGGER_ACL           = (1UL << 27),
  CREATE_TABLESPACE_ACL = (1UL << 28),
  DELETE_HISTORY_ACL    = (1UL << 29),  // Added in 10.3.4
  SET_USER_ACL          = (1UL << 30),  // Added in 10.5.2
  FEDERATED_ADMIN_ACL   = (1UL << 31),  // Added in 10.5.2
  CONNECTION_ADMIN_ACL  = (1ULL << 32), // Added in 10.5.2
  READ_ONLY_ADMIN_ACL   = (1ULL << 33), // Added in 10.5.2
  REPL_SLAVE_ADMIN_ACL  = (1ULL << 34), // Added in 10.5.2
  REPL_MASTER_ADMIN_ACL = (1ULL << 35), // Added in 10.5.2
  BINLOG_ADMIN_ACL      = (1ULL << 36), // Added in 10.5.2
  BINLOG_REPLAY_ACL     = (1ULL << 37), // Added in 10.5.2
  SLAVE_MONITOR_ACL     = (1ULL << 38)  // Added in 10.5.8
  /*
    When adding new privilege bits, don't forget to update:
    In this file:
    - Add a new LAST_version_ACL
    - Add a new ALL_KNOWN_ACL_version
    - Change ALL_KNOWN_ACL to ALL_KNOWN_ACL_version
    - Change GLOBAL_ACLS if needed
    - Change SUPER_ADDED_SINCE_USER_TABLE_ACL if needed

    In other files:
    - static struct show_privileges_st sys_privileges[]
    - static const char *command_array[] and static uint command_lengths[]
    - mysql_system_tables.sql and mysql_system_tables_fix.sql
    - acl_init() or whatever - to define behaviour for old privilege tables
    - Update User_table_json::get_access()
    - sql_yacc.yy - for GRANT/REVOKE to work

    Important: the enum should contain only single-bit values.
    In this case, debuggers print bit combinations in the readable form:
     (gdb) p (privilege_t) (15)
     $8 = (SELECT_ACL | INSERT_ACL | UPDATE_ACL | DELETE_ACL)

    Bit-OR combinations of the above values should be declared outside!
  */
};

constexpr static inline privilege_t ALL_KNOWN_BITS(privilege_t x)
{
  return (privilege_t)(x | (x-1));
}

// Version markers
constexpr privilege_t LAST_100304_ACL= DELETE_HISTORY_ACL;
constexpr privilege_t LAST_100502_ACL= BINLOG_REPLAY_ACL;
constexpr privilege_t LAST_100508_ACL= SLAVE_MONITOR_ACL;

// Current version markers
constexpr privilege_t LAST_CURRENT_ACL= LAST_100508_ACL;
constexpr uint PRIVILEGE_T_MAX_BIT=
              my_bit_log2_uint64((ulonglong) LAST_CURRENT_ACL);

static_assert((privilege_t)(1ULL << PRIVILEGE_T_MAX_BIT) == LAST_CURRENT_ACL,
              "Something went fatally badly: "
              "LAST_CURRENT_ACL and PRIVILEGE_T_MAX_BIT do not match");

// A combination of all bits defined in 10.3.4 (and earlier)
constexpr privilege_t ALL_KNOWN_ACL_100304 = ALL_KNOWN_BITS(LAST_100304_ACL);

// A combination of all bits defined in 10.5.2
constexpr privilege_t ALL_KNOWN_ACL_100502= ALL_KNOWN_BITS(LAST_100502_ACL);

// A combination of all bits defined in 10.5.8
constexpr privilege_t ALL_KNOWN_ACL_100508= ALL_KNOWN_BITS(LAST_100508_ACL);
// unfortunately, SLAVE_MONITOR_ACL was added in 10.5.9, but also in 10.5.8-5
// let's stay compatible with that branch too.
constexpr privilege_t ALL_KNOWN_ACL_100509= ALL_KNOWN_ACL_100508;

// A combination of all bits defined as of the current version
constexpr privilege_t ALL_KNOWN_ACL= ALL_KNOWN_BITS(LAST_CURRENT_ACL);


// Unary operators
static inline constexpr ulonglong operator~(privilege_t access)
{
  return ~static_cast<ulonglong>(access);
}

/*
  Comparison operators.
  Delete automatic conversion between to/from integer types as much as possible.
  This forces to use `(priv == NO_ACL)` instead of `(priv == 0)`.

  Note: these operators will be gone when we change privilege_t to
  "enum class privilege_t". See comments above.
*/
static inline bool operator==(privilege_t, ulonglong)= delete;
static inline bool operator==(privilege_t,     ulong)= delete;
static inline bool operator==(privilege_t,      uint)= delete;
static inline bool operator==(privilege_t,     uchar)= delete;
static inline bool operator==(privilege_t,  longlong)= delete;
static inline bool operator==(privilege_t,      long)= delete;
static inline bool operator==(privilege_t,       int)= delete;
static inline bool operator==(privilege_t,      char)= delete;
static inline bool operator==(privilege_t,      bool)= delete;

static inline bool operator==(ulonglong, privilege_t)= delete;
static inline bool operator==(ulong,     privilege_t)= delete;
static inline bool operator==(uint,      privilege_t)= delete;
static inline bool operator==(uchar,     privilege_t)= delete;
static inline bool operator==(longlong,  privilege_t)= delete;
static inline bool operator==(long,      privilege_t)= delete;
static inline bool operator==(int,       privilege_t)= delete;
static inline bool operator==(char,      privilege_t)= delete;
static inline bool operator==(bool,      privilege_t)= delete;

static inline bool operator!=(privilege_t, ulonglong)= delete;
static inline bool operator!=(privilege_t,     ulong)= delete;
static inline bool operator!=(privilege_t,      uint)= delete;
static inline bool operator!=(privilege_t,     uchar)= delete;
static inline bool operator!=(privilege_t,  longlong)= delete;
static inline bool operator!=(privilege_t,      long)= delete;
static inline bool operator!=(privilege_t,       int)= delete;
static inline bool operator!=(privilege_t,      char)= delete;
static inline bool operator!=(privilege_t,      bool)= delete;

static inline bool operator!=(ulonglong, privilege_t)= delete;
static inline bool operator!=(ulong,     privilege_t)= delete;
static inline bool operator!=(uint,      privilege_t)= delete;
static inline bool operator!=(uchar,     privilege_t)= delete;
static inline bool operator!=(longlong,  privilege_t)= delete;
static inline bool operator!=(long,      privilege_t)= delete;
static inline bool operator!=(int,       privilege_t)= delete;
static inline bool operator!=(char,      privilege_t)= delete;
static inline bool operator!=(bool,      privilege_t)= delete;


// Dyadic bitwise operators
static inline constexpr privilege_t operator&(privilege_t a, privilege_t b)
{
  return static_cast<privilege_t>(static_cast<ulonglong>(a) &
                                  static_cast<ulonglong>(b));
}

static inline constexpr privilege_t operator&(ulonglong a, privilege_t b)
{
  return static_cast<privilege_t>(a & static_cast<ulonglong>(b));
}

static inline constexpr privilege_t operator&(privilege_t a, ulonglong b)
{
  return static_cast<privilege_t>(static_cast<ulonglong>(a) & b);
}

static inline constexpr privilege_t operator|(privilege_t a, privilege_t b)
{
  return static_cast<privilege_t>(static_cast<ulonglong>(a) |
                                  static_cast<ulonglong>(b));
}


// Dyadyc bitwise assignment operators
static inline privilege_t& operator&=(privilege_t &a, privilege_t b)
{
  return a= a & b;
}

static inline privilege_t& operator&=(privilege_t &a, ulonglong b)
{
  return a= a & b;
}

static inline privilege_t& operator|=(privilege_t &a, privilege_t b)
{
  return a= a | b;
}


/*
  A combination of all SUPER privileges added since the old user table format.
  These privileges are automatically added when upgrading from the
  old format mysql.user table if a user has the SUPER privilege.
*/
constexpr privilege_t  GLOBAL_SUPER_ADDED_SINCE_USER_TABLE_ACLS=
  SET_USER_ACL |
  FEDERATED_ADMIN_ACL |
  CONNECTION_ADMIN_ACL |
  READ_ONLY_ADMIN_ACL |
  REPL_SLAVE_ADMIN_ACL |
  BINLOG_ADMIN_ACL |
  BINLOG_REPLAY_ACL;


constexpr privilege_t COL_DML_ACLS=
  SELECT_ACL | INSERT_ACL | UPDATE_ACL | DELETE_ACL;

constexpr privilege_t VIEW_ACLS=
  CREATE_VIEW_ACL | SHOW_VIEW_ACL;

constexpr privilege_t STD_TABLE_DDL_ACLS=
  CREATE_ACL | DROP_ACL | ALTER_ACL;

constexpr privilege_t ALL_TABLE_DDL_ACLS=
  STD_TABLE_DDL_ACLS | INDEX_ACL;

constexpr privilege_t COL_ACLS=
  SELECT_ACL | INSERT_ACL | UPDATE_ACL | REFERENCES_ACL;

constexpr privilege_t PROC_DDL_ACLS=
  CREATE_PROC_ACL | ALTER_PROC_ACL;

constexpr privilege_t SHOW_PROC_ACLS=
  PROC_DDL_ACLS | EXECUTE_ACL;

constexpr privilege_t TABLE_ACLS=
  COL_DML_ACLS | ALL_TABLE_DDL_ACLS | VIEW_ACLS |
  GRANT_ACL | REFERENCES_ACL | 
  TRIGGER_ACL | DELETE_HISTORY_ACL;

constexpr privilege_t DB_ACLS=
   TABLE_ACLS | PROC_DDL_ACLS | EXECUTE_ACL |
   CREATE_TMP_ACL | LOCK_TABLES_ACL | EVENT_ACL;

constexpr privilege_t PROC_ACLS=
  ALTER_PROC_ACL | EXECUTE_ACL | GRANT_ACL;

constexpr privilege_t GLOBAL_ACLS=
  DB_ACLS | SHOW_DB_ACL |
  CREATE_USER_ACL | CREATE_TABLESPACE_ACL |
  SUPER_ACL | RELOAD_ACL | SHUTDOWN_ACL | PROCESS_ACL | FILE_ACL |
  REPL_SLAVE_ACL | BINLOG_MONITOR_ACL |
  GLOBAL_SUPER_ADDED_SINCE_USER_TABLE_ACLS |
  REPL_MASTER_ADMIN_ACL | SLAVE_MONITOR_ACL;

constexpr privilege_t DEFAULT_CREATE_PROC_ACLS=
  ALTER_PROC_ACL | EXECUTE_ACL;

constexpr privilege_t SHOW_CREATE_TABLE_ACLS=
  COL_DML_ACLS | ALL_TABLE_DDL_ACLS |
  TRIGGER_ACL | REFERENCES_ACL | GRANT_ACL | VIEW_ACLS;

/**
  Table-level privileges which are automatically "granted" to everyone on
  existing temporary tables (CREATE_ACL is necessary for ALTER ... RENAME).
*/
constexpr privilege_t TMP_TABLE_ACLS=
  COL_DML_ACLS | ALL_TABLE_DDL_ACLS | REFERENCES_ACL;


constexpr privilege_t PRIV_LOCK_TABLES= SELECT_ACL | LOCK_TABLES_ACL;

/*
  Allow to set an object definer:
    CREATE DEFINER=xxx {TRIGGER|VIEW|FUNCTION|PROCEDURE}
  Was SUPER prior to 10.5.2
*/
constexpr privilege_t PRIV_DEFINER_CLAUSE= SET_USER_ACL | SUPER_ACL;
/*
  If a VIEW has a `definer=invoker@host` clause and
  the specified definer does not exists, then
  - The invoker with REVEAL_MISSING_DEFINER_ACL gets:
    ERROR: The user specified as a definer ('definer1'@'localhost') doesn't exist
  - The invoker without MISSING_DEFINER_ACL gets a generic access error,
    without revealing details that the definer does not exists.

  TODO: we should eventually test the same privilege when processing
  other objects that have the DEFINER clause (e.g. routines, triggers).
  Currently the missing definer is revealed for non-privileged invokers
  in case of routines, triggers, etc.

  Was SUPER prior to 10.5.2
*/
constexpr privilege_t PRIV_REVEAL_MISSING_DEFINER= SET_USER_ACL | SUPER_ACL;

/* Actions that require only the SUPER privilege */
constexpr privilege_t PRIV_DES_DECRYPT_ONE_ARG= SUPER_ACL;
constexpr privilege_t PRIV_LOG_BIN_TRUSTED_SP_CREATOR= SUPER_ACL;
constexpr privilege_t PRIV_DEBUG= SUPER_ACL;
constexpr privilege_t PRIV_SET_GLOBAL_SYSTEM_VARIABLE= SUPER_ACL;
constexpr privilege_t PRIV_SET_RESTRICTED_SESSION_SYSTEM_VARIABLE= SUPER_ACL;

/* The following variables respected only SUPER_ACL prior to 10.5.2 */
constexpr privilege_t PRIV_SET_SYSTEM_VAR_BINLOG_FORMAT=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_VAR_BINLOG_DIRECT_NON_TRANSACTIONAL_UPDATES=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_VAR_BINLOG_ANNOTATE_ROW_EVENTS=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_VAR_BINLOG_ROW_IMAGE=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_VAR_SQL_LOG_BIN=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_BINLOG_CACHE_SIZE=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_BINLOG_FILE_CACHE_SIZE=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_BINLOG_STMT_CACHE_SIZE=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_BINLOG_COMMIT_WAIT_COUNT=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_BINLOG_COMMIT_WAIT_USEC=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_BINLOG_ROW_METADATA=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_EXPIRE_LOGS_DAYS=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_LOG_BIN_COMPRESS=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_LOG_BIN_COMPRESS_MIN_LEN=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_LOG_BIN_TRUST_FUNCTION_CREATORS=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_MAX_BINLOG_CACHE_SIZE=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_MAX_BINLOG_STMT_CACHE_SIZE=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_MAX_BINLOG_SIZE=
  SUPER_ACL | BINLOG_ADMIN_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SYNC_BINLOG=
  SUPER_ACL | BINLOG_ADMIN_ACL;



/* Privileges related to --read-only */
// Was super prior to 10.5.2
constexpr privilege_t PRIV_IGNORE_READ_ONLY= READ_ONLY_ADMIN_ACL | SUPER_ACL;
// Was super prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_READ_ONLY=
  READ_ONLY_ADMIN_ACL | SUPER_ACL;

/*
  Privileges related to connection handling.
*/
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_IGNORE_INIT_CONNECT= CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_IGNORE_MAX_USER_CONNECTIONS= CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_IGNORE_MAX_CONNECTIONS= CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_IGNORE_MAX_PASSWORD_ERRORS= CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_KILL_OTHER_USER_PROCESS= CONNECTION_ADMIN_ACL | SUPER_ACL;

// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_CONNECT_TIMEOUT=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_DISCONNECT_ON_EXPIRED_PASSWORD=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_EXTRA_MAX_CONNECTIONS=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_INIT_CONNECT=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_MAX_CONNECTIONS=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_MAX_CONNECT_ERRORS=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_MAX_PASSWORD_ERRORS=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_PROXY_PROTOCOL_NETWORKS=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SECURE_AUTH=
  CONNECTION_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLOW_LAUNCH_TIME=
  CONNECTION_ADMIN_ACL | SUPER_ACL;

// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_THREAD_POOL=
  CONNECTION_ADMIN_ACL | SUPER_ACL;


/*
  Binary log related privileges that are checked regardless
  of active replication running.
*/

/*
  This command was renamed from "SHOW MASTER STATUS"
  to "SHOW BINLOG STATUS" in 10.5.2.
  Was SUPER_ACL | REPL_CLIENT_ACL prior to 10.5.2
  REPL_CLIENT_ACL was renamed to BINLOG_MONITOR_ACL.
*/
constexpr privilege_t PRIV_STMT_SHOW_BINLOG_STATUS= BINLOG_MONITOR_ACL | SUPER_ACL;

/*
  Was SUPER_ACL | REPL_CLIENT_ACL prior to 10.5.2
  REPL_CLIENT_ACL was renamed to BINLOG_MONITOR_ACL.
*/
constexpr privilege_t PRIV_STMT_SHOW_BINARY_LOGS= BINLOG_MONITOR_ACL | SUPER_ACL;

// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_PURGE_BINLOG= BINLOG_ADMIN_ACL | SUPER_ACL;

// Was REPL_SLAVE_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_SHOW_BINLOG_EVENTS= BINLOG_MONITOR_ACL;


/*
  Privileges for replication related statements and commands
  that are executed on the master.
*/
constexpr privilege_t PRIV_COM_REGISTER_SLAVE= REPL_SLAVE_ACL;
constexpr privilege_t PRIV_COM_BINLOG_DUMP= REPL_SLAVE_ACL;
// Was REPL_SLAVE_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_SHOW_SLAVE_HOSTS= REPL_MASTER_ADMIN_ACL;

/*
  Replication master related variable privileges.
  Where SUPER prior to 10.5.2
*/
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_MASTER_ENABLED=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_MASTER_TIMEOUT=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_MASTER_WAIT_NO_SLAVE=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_MASTER_TRACE_LEVEL=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_MASTER_WAIT_POINT=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_MASTER_VERIFY_CHECKSUM=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_GTID_BINLOG_STATE=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SERVER_ID=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_GTID_DOMAIN_ID=
  REPL_MASTER_ADMIN_ACL | SUPER_ACL;


/* Privileges for statements that are executed on the slave */
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_START_SLAVE= REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_STOP_SLAVE= REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_CHANGE_MASTER= REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
// Was (SUPER_ACL | REPL_CLIENT_ACL) prior to 10.5.2
// Was (SUPER_ACL | REPL_SLAVE_ADMIN_ACL) from 10.5.2 to 10.5.7
constexpr privilege_t PRIV_STMT_SHOW_SLAVE_STATUS= SLAVE_MONITOR_ACL | SUPER_ACL;
// Was REPL_SLAVE_ACL prior to 10.5.2
// Was REPL_SLAVE_ADMIN_ACL from 10.5.2 to 10.5.7
constexpr privilege_t PRIV_STMT_SHOW_RELAYLOG_EVENTS= SLAVE_MONITOR_ACL;

/*
  Privileges related to binlog replying.
  Were SUPER_ACL prior to 10.5.2
*/
constexpr privilege_t PRIV_STMT_BINLOG= BINLOG_REPLAY_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_SESSION_VAR_GTID_SEQ_NO=
  BINLOG_REPLAY_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_SESSION_VAR_PSEUDO_THREAD_ID=
  BINLOG_REPLAY_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_SESSION_VAR_SERVER_ID=
  BINLOG_REPLAY_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_SESSION_VAR_GTID_DOMAIN_ID=
  BINLOG_REPLAY_ACL | SUPER_ACL;

/*
  Privileges for slave related global variables.
  Were SUPER prior to 10.5.2.
*/
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_REPLICATE_EVENTS_MARKED_FOR_SKIP=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_REPLICATE_DO_DB=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_REPLICATE_DO_TABLE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_REPLICATE_IGNORE_DB=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_REPLICATE_IGNORE_TABLE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_REPLICATE_WILD_DO_TABLE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_REPLICATE_WILD_IGNORE_TABLE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_READ_BINLOG_SPEED_LIMIT=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_COMPRESSED_PROTOCOL=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_DDL_EXEC_MODE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_DOMAIN_PARALLEL_THREADS=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_EXEC_MODE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_MAX_ALLOWED_PACKET=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_NET_TIMEOUT=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_PARALLEL_MAX_QUEUED=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_PARALLEL_MODE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_PARALLEL_THREADS=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_PARALLEL_WORKERS=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_RUN_TRIGGERS_FOR_RBR=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_SQL_VERIFY_CHECKSUM=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_TRANSACTION_RETRY_INTERVAL=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SLAVE_TYPE_CONVERSIONS=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_INIT_SLAVE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_SLAVE_ENABLED=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_SLAVE_TRACE_LEVEL=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_SLAVE_DELAY_MASTER=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RPL_SEMI_SYNC_SLAVE_KILL_CONN_TIMEOUT=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RELAY_LOG_PURGE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_RELAY_LOG_RECOVERY=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SYNC_MASTER_INFO=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SYNC_RELAY_LOG=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_SYNC_RELAY_LOG_INFO=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;

constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_GTID_CLEANUP_BATCH_SIZE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_GTID_IGNORE_DUPLICATES=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_GTID_POS_AUTO_ENGINES=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_GTID_SLAVE_POS=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;
constexpr privilege_t PRIV_SET_SYSTEM_GLOBAL_VAR_GTID_STRICT_MODE=
  REPL_SLAVE_ADMIN_ACL | SUPER_ACL;


/* Privileges for federated database related statements */
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_CREATE_SERVER= FEDERATED_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_ALTER_SERVER= FEDERATED_ADMIN_ACL | SUPER_ACL;
// Was SUPER_ACL prior to 10.5.2
constexpr privilege_t PRIV_STMT_DROP_SERVER= FEDERATED_ADMIN_ACL | SUPER_ACL;


/* Privileges related to processes */
constexpr privilege_t PRIV_COM_PROCESS_INFO= PROCESS_ACL;
constexpr privilege_t PRIV_STMT_SHOW_EXPLAIN= PROCESS_ACL;
constexpr privilege_t PRIV_STMT_SHOW_ENGINE_STATUS= PROCESS_ACL;
constexpr privilege_t PRIV_STMT_SHOW_ENGINE_MUTEX= PROCESS_ACL;
constexpr privilege_t PRIV_STMT_SHOW_PROCESSLIST= PROCESS_ACL;


/*
  Defines to change the above bits to how things are stored in tables
  This is needed as the 'host' and 'db' table is missing a few privileges
*/

/* Privileges that need to be reallocated (in continous chunks) */
constexpr privilege_t DB_CHUNK0 (COL_DML_ACLS | CREATE_ACL | DROP_ACL);
constexpr privilege_t DB_CHUNK1 (GRANT_ACL | REFERENCES_ACL | INDEX_ACL | ALTER_ACL);
constexpr privilege_t DB_CHUNK2 (CREATE_TMP_ACL | LOCK_TABLES_ACL);
constexpr privilege_t DB_CHUNK3 (VIEW_ACLS | PROC_DDL_ACLS);
constexpr privilege_t DB_CHUNK4 (EXECUTE_ACL);
constexpr privilege_t DB_CHUNK5 (EVENT_ACL | TRIGGER_ACL);
constexpr privilege_t DB_CHUNK6 (DELETE_HISTORY_ACL);


static inline privilege_t fix_rights_for_db(privilege_t access)
{
  ulonglong A(access);
  return static_cast<privilege_t>
           (((A)      & DB_CHUNK0) |
            ((A << 4) & DB_CHUNK1) |
            ((A << 6) & DB_CHUNK2) |
            ((A << 9) & DB_CHUNK3) |
            ((A << 2) & DB_CHUNK4) |
            ((A << 9) & DB_CHUNK5) |
            ((A << 10) & DB_CHUNK6));
}

static inline privilege_t get_rights_for_db(privilege_t access)
{
  ulonglong A(access);
  return static_cast<privilege_t>
           ((A & DB_CHUNK0)       |
           ((A & DB_CHUNK1) >> 4) |
           ((A & DB_CHUNK2) >> 6) |
           ((A & DB_CHUNK3) >> 9) |
           ((A & DB_CHUNK4) >> 2) |
           ((A & DB_CHUNK5) >> 9) |
           ((A & DB_CHUNK6) >> 10));
}


#define TBL_CHUNK0 DB_CHUNK0
#define TBL_CHUNK1 DB_CHUNK1
#define TBL_CHUNK2 (CREATE_VIEW_ACL | SHOW_VIEW_ACL)
#define TBL_CHUNK3 TRIGGER_ACL
#define TBL_CHUNK4 (DELETE_HISTORY_ACL)


static inline privilege_t fix_rights_for_table(privilege_t access)
{
  ulonglong A(access);
  return static_cast<privilege_t>
           ((A        & TBL_CHUNK0) |
           ((A <<  4) & TBL_CHUNK1) |
           ((A << 11) & TBL_CHUNK2) |
           ((A << 15) & TBL_CHUNK3) |
           ((A << 16) & TBL_CHUNK4));
}


static inline privilege_t get_rights_for_table(privilege_t access)
{
  ulonglong A(access);
  return static_cast<privilege_t>
           ((A & TBL_CHUNK0)        |
           ((A & TBL_CHUNK1) >>  4) |
           ((A & TBL_CHUNK2) >> 11) |
           ((A & TBL_CHUNK3) >> 15) |
           ((A & TBL_CHUNK4) >> 16));
}


static inline privilege_t fix_rights_for_column(privilege_t A)
{
  const ulonglong mask(SELECT_ACL | INSERT_ACL | UPDATE_ACL);
  return (A & mask) | static_cast<privilege_t>((A & ~mask) << 8);
}


static inline privilege_t get_rights_for_column(privilege_t A)
{
  const ulonglong mask(SELECT_ACL | INSERT_ACL | UPDATE_ACL);
  return static_cast<privilege_t>((static_cast<ulonglong>(A) & mask) |
                                  (static_cast<ulonglong>(A) >> 8));
}


static inline privilege_t fix_rights_for_procedure(privilege_t access)
{
  ulonglong A(access);
  return static_cast<privilege_t>
           (((A << 18) & EXECUTE_ACL)    |
            ((A << 23) & ALTER_PROC_ACL) |
            ((A << 8) & GRANT_ACL));
}


static inline privilege_t get_rights_for_procedure(privilege_t access)
{
  ulonglong A(access);
  return static_cast<privilege_t>
           (((A & EXECUTE_ACL)    >> 18) |
            ((A & ALTER_PROC_ACL) >> 23) |
            ((A & GRANT_ACL) >> 8));
}


#endif /* PRIVILEGE_H_INCLUDED */

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 18 2025 08:38:22
root / root
0755
atomic
--
June 18 2025 08:38:22
root / root
0755
aligned.h
1.109 KB
May 28 2025 17:32:51
root / root
0644
aria_backup.h
1.511 KB
May 28 2025 17:32:51
root / root
0644
assume_aligned.h
2.295 KB
May 28 2025 17:32:51
root / root
0644
authors.h
9.903 KB
May 28 2025 17:32:51
root / root
0644
backup.h
1.663 KB
May 28 2025 17:32:51
root / root
0644
bounded_queue.h
5.95 KB
May 28 2025 17:32:51
root / root
0644
client_settings.h
1.89 KB
May 28 2025 17:32:51
root / root
0644
compat56.h
2.227 KB
May 28 2025 17:32:51
root / root
0644
config.h
14.232 KB
May 28 2025 17:32:51
root / root
0644
contributors.h
4.764 KB
May 28 2025 17:32:51
root / root
0644
create_options.h
4.418 KB
May 28 2025 17:32:51
root / root
0644
create_tmp_table.h
2.742 KB
May 28 2025 17:32:51
root / root
0644
cset_narrowing.h
3.875 KB
May 28 2025 17:32:51
root / root
0644
custom_conf.h
1.057 KB
May 28 2025 17:32:51
root / root
0644
datadict.h
1.66 KB
May 28 2025 17:32:51
root / root
0644
ddl_log.h
12.388 KB
May 28 2025 17:32:51
root / root
0644
debug.h
1.205 KB
May 28 2025 17:32:51
root / root
0644
debug_sync.h
1.998 KB
May 28 2025 17:32:51
root / root
0644
derived_handler.h
2.323 KB
May 28 2025 17:32:51
root / root
0644
derror.h
0.957 KB
May 28 2025 17:32:51
root / root
0644
des_key_file.h
1.207 KB
May 28 2025 17:32:51
root / root
0644
discover.h
1.533 KB
May 28 2025 17:32:51
root / root
0644
dur_prop.h
1.057 KB
May 28 2025 17:32:51
root / root
0644
embedded_priv.h
1.692 KB
May 28 2025 17:32:51
root / root
0644
event_data_objects.h
4.089 KB
May 28 2025 17:32:51
root / root
0644
event_db_repository.h
3.563 KB
May 28 2025 17:32:51
root / root
0644
event_parse_data.h
2.831 KB
May 28 2025 17:32:51
root / root
0644
event_queue.h
3.357 KB
May 28 2025 17:32:51
root / root
0644
event_scheduler.h
3.213 KB
May 28 2025 17:32:51
root / root
0644
events.h
4.594 KB
May 28 2025 17:32:51
root / root
0644
field.h
215.249 KB
May 28 2025 17:32:51
root / root
0644
field_comp.h
1.146 KB
May 28 2025 17:32:51
root / root
0644
filesort.h
7.112 KB
May 28 2025 17:32:51
root / root
0644
filesort_utils.h
8.003 KB
May 28 2025 17:32:51
root / root
0644
ft_global.h
3.04 KB
May 28 2025 17:32:51
root / root
0644
gcalc_slicescan.h
16.867 KB
May 28 2025 17:32:51
root / root
0644
gcalc_tools.h
11.621 KB
May 28 2025 17:32:51
root / root
0644
grant.h
2.693 KB
May 28 2025 17:32:51
root / root
0644
group_by_handler.h
3.451 KB
May 28 2025 17:32:51
root / root
0644
gstream.h
2.38 KB
May 28 2025 17:32:51
root / root
0644
ha_handler_stats.h
2.28 KB
May 28 2025 17:32:51
root / root
0644
ha_partition.h
62.903 KB
May 28 2025 17:32:51
root / root
0644
ha_sequence.h
6.099 KB
May 28 2025 17:32:51
root / root
0644
handle_connections_win.h
0.863 KB
May 28 2025 17:32:51
root / root
0644
handler.h
196.456 KB
May 28 2025 17:32:51
root / root
0644
hash.h
4.345 KB
May 28 2025 17:32:51
root / root
0644
hash_filo.h
5.555 KB
May 28 2025 17:32:51
root / root
0644
heap.h
9.258 KB
May 28 2025 17:32:51
root / root
0644
hostname.h
5.292 KB
May 28 2025 17:32:51
root / root
0644
ilist.h
6.883 KB
May 28 2025 17:32:51
root / root
0644
init.h
0.832 KB
May 28 2025 17:32:51
root / root
0644
innodb_priv.h
1.288 KB
May 28 2025 17:32:51
root / root
0644
item.h
272.645 KB
May 28 2025 17:32:51
root / root
0644
item_cmpfunc.h
131.862 KB
May 28 2025 17:32:51
root / root
0644
item_create.h
11.231 KB
May 28 2025 17:32:51
root / root
0644
item_func.h
133.452 KB
May 28 2025 17:32:51
root / root
0644
item_geofunc.h
37.992 KB
May 28 2025 17:32:51
root / root
0644
item_jsonfunc.h
21.988 KB
May 28 2025 17:32:51
root / root
0644
item_row.h
5.099 KB
May 28 2025 17:32:51
root / root
0644
item_strfunc.h
70.548 KB
May 28 2025 17:32:51
root / root
0644
item_subselect.h
57.767 KB
May 28 2025 17:32:51
root / root
0644
item_sum.h
70.593 KB
May 28 2025 17:32:51
root / root
0644
item_timefunc.h
63.101 KB
May 28 2025 17:32:51
root / root
0644
item_vers.h
4.232 KB
May 28 2025 17:32:51
root / root
0644
item_windowfunc.h
33.511 KB
May 28 2025 17:32:51
root / root
0644
item_xmlfunc.h
4.499 KB
May 28 2025 17:32:51
root / root
0644
json_table.h
9.283 KB
May 28 2025 17:32:51
root / root
0644
key.h
2.082 KB
May 28 2025 17:32:51
root / root
0644
keycaches.h
1.948 KB
May 28 2025 17:32:51
root / root
0644
lex.h
29.128 KB
May 28 2025 17:32:51
root / root
0644
lex_string.h
3.973 KB
May 28 2025 17:32:51
root / root
0644
lex_symbol.h
1.292 KB
May 28 2025 17:32:51
root / root
0644
lf.h
6.311 KB
May 28 2025 17:32:51
root / root
0644
lock.h
2.151 KB
May 28 2025 17:32:51
root / root
0644
log.h
45.003 KB
May 28 2025 17:32:51
root / root
0644
log_event.h
182.041 KB
May 28 2025 17:32:51
root / root
0644
log_event_data_type.h
1.846 KB
May 28 2025 17:32:51
root / root
0644
log_event_old.h
19.365 KB
May 28 2025 17:32:51
root / root
0644
log_slow.h
2.385 KB
May 28 2025 17:32:51
root / root
0644
maria.h
5.734 KB
May 28 2025 17:32:51
root / root
0644
mariadb.h
1.247 KB
May 28 2025 17:32:51
root / root
0644
mdl.h
37.566 KB
May 28 2025 17:32:51
root / root
0644
mem_root_array.h
6.939 KB
May 28 2025 17:32:51
root / root
0644
message.h
1.167 KB
May 28 2025 17:32:51
root / root
0644
multi_range_read.h
22.636 KB
May 28 2025 17:32:51
root / root
0644
my_alarm.h
2.372 KB
May 28 2025 17:32:51
root / root
0644
my_apc.h
4.636 KB
May 28 2025 17:32:51
root / root
0644
my_atomic.h
7.11 KB
May 28 2025 17:32:51
root / root
0644
my_atomic_wrapper.h
2.979 KB
May 28 2025 17:32:51
root / root
0644
my_base.h
26.572 KB
May 28 2025 17:32:51
root / root
0644
my_bit.h
6.051 KB
May 28 2025 17:32:51
root / root
0644
my_bitmap.h
5.744 KB
May 28 2025 17:32:51
root / root
0644
my_check_opt.h
2.557 KB
May 28 2025 17:32:51
root / root
0644
my_compare.h
10.932 KB
May 28 2025 17:32:51
root / root
0644
my_counter.h
1.681 KB
May 28 2025 17:32:51
root / root
0644
my_cpu.h
4.741 KB
May 28 2025 17:32:51
root / root
0644
my_crypt.h
0.883 KB
May 28 2025 17:32:51
root / root
0644
my_decimal.h
14.149 KB
May 28 2025 17:32:51
root / root
0644
my_default.h
1.836 KB
May 28 2025 17:32:51
root / root
0644
my_handler_errors.h
4.768 KB
May 28 2025 17:32:51
root / root
0644
my_json_writer.h
17.951 KB
May 28 2025 17:32:51
root / root
0644
my_libwrap.h
1.155 KB
May 28 2025 17:32:51
root / root
0644
my_md5.h
1.451 KB
May 28 2025 17:32:51
root / root
0644
my_minidump.h
0.828 KB
May 28 2025 17:32:51
root / root
0644
my_nosys.h
1.404 KB
May 28 2025 17:32:51
root / root
0644
my_rdtsc.h
8.228 KB
May 28 2025 17:32:51
root / root
0644
my_rnd.h
1.039 KB
May 28 2025 17:32:51
root / root
0644
my_service_manager.h
2.002 KB
May 28 2025 17:32:51
root / root
0644
my_stack_alloc.h
6.341 KB
May 28 2025 17:32:51
root / root
0644
my_stacktrace.h
3.14 KB
May 28 2025 17:32:51
root / root
0644
my_time.h
10.221 KB
May 28 2025 17:32:51
root / root
0644
my_tree.h
3.897 KB
May 28 2025 17:32:51
root / root
0644
my_uctype.h
67.898 KB
May 28 2025 17:32:51
root / root
0644
my_user.h
1.1 KB
May 28 2025 17:32:51
root / root
0644
myisam.h
17.096 KB
May 28 2025 17:32:51
root / root
0644
myisamchk.h
4.605 KB
May 28 2025 17:32:51
root / root
0644
myisammrg.h
4.782 KB
May 28 2025 17:32:51
root / root
0644
myisampack.h
14.579 KB
May 28 2025 17:32:51
root / root
0644
mysqld.h
39.553 KB
May 28 2025 17:32:51
root / root
0644
mysqld_default_groups.h
0.199 KB
May 28 2025 17:32:51
root / root
0644
mysqld_suffix.h
1.173 KB
May 28 2025 17:32:51
root / root
0644
mysys_err.h
2.951 KB
May 28 2025 17:32:51
root / root
0644
opt_range.h
58.194 KB
May 28 2025 17:32:51
root / root
0644
opt_subselect.h
14.21 KB
May 28 2025 17:32:51
root / root
0644
opt_trace.h
8.295 KB
May 28 2025 17:32:51
root / root
0644
opt_trace_context.h
3.214 KB
May 28 2025 17:32:51
root / root
0644
parse_file.h
4.284 KB
May 28 2025 17:32:51
root / root
0644
partition_element.h
5.087 KB
May 28 2025 17:32:51
root / root
0644
partition_info.h
18.848 KB
May 28 2025 17:32:51
root / root
0644
password.h
1.143 KB
May 28 2025 17:32:51
root / root
0644
pfs_file_provider.h
3.079 KB
May 28 2025 17:32:51
root / root
0644
pfs_idle_provider.h
1.353 KB
May 28 2025 17:32:51
root / root
0644
pfs_memory_provider.h
1.588 KB
May 28 2025 17:32:51
root / root
0644
pfs_metadata_provider.h
1.854 KB
May 28 2025 17:32:51
root / root
0644
pfs_socket_provider.h
2.205 KB
May 28 2025 17:32:51
root / root
0644
pfs_stage_provider.h
1.52 KB
May 28 2025 17:32:51
root / root
0644
pfs_statement_provider.h
4.245 KB
May 28 2025 17:32:51
root / root
0644
pfs_table_provider.h
2.563 KB
May 28 2025 17:32:51
root / root
0644
pfs_thread_provider.h
5.43 KB
May 28 2025 17:32:51
root / root
0644
pfs_transaction_provider.h
2.779 KB
May 28 2025 17:32:51
root / root
0644
privilege.h
27.971 KB
May 28 2025 17:32:51
root / root
0644
probes_mysql.h
0.95 KB
May 28 2025 17:32:51
root / root
0644
probes_mysql_dtrace.h
32.231 KB
May 28 2025 17:32:51
root / root
0644
probes_mysql_nodtrace.h
4.888 KB
May 28 2025 17:32:51
root / root
0644
procedure.h
6.625 KB
May 28 2025 17:32:51
root / root
0644
protocol.h
12.197 KB
May 28 2025 17:32:51
root / root
0644
proxy_protocol.h
0.535 KB
May 28 2025 17:32:51
root / root
0644
queues.h
3.396 KB
May 28 2025 17:32:51
root / root
0644
records.h
3.073 KB
May 28 2025 17:32:51
root / root
0644
repl_failsafe.h
1.548 KB
May 28 2025 17:32:51
root / root
0644
replication.h
15.729 KB
May 28 2025 17:32:51
root / root
0644
rijndael.h
1.671 KB
May 28 2025 17:32:51
root / root
0644
rowid_filter.h
15.114 KB
May 28 2025 17:32:51
root / root
0644
rpl_constants.h
3.278 KB
May 28 2025 17:32:51
root / root
0644
rpl_filter.h
4.429 KB
May 28 2025 17:32:51
root / root
0644
rpl_gtid.h
13.362 KB
May 28 2025 17:32:51
root / root
0644
rpl_injector.h
9.396 KB
May 28 2025 17:32:51
root / root
0644
rpl_mi.h
14.64 KB
May 28 2025 17:32:51
root / root
0644
rpl_parallel.h
17.052 KB
May 28 2025 17:32:51
root / root
0644
rpl_record.h
1.548 KB
May 28 2025 17:32:51
root / root
0644
rpl_record_old.h
1.374 KB
May 28 2025 17:32:51
root / root
0644
rpl_reporting.h
3.626 KB
May 28 2025 17:32:51
root / root
0644
rpl_rli.h
31.979 KB
May 28 2025 17:32:51
root / root
0644
rpl_tblmap.h
3.103 KB
May 28 2025 17:32:51
root / root
0644
rpl_utility.h
9.404 KB
May 28 2025 17:32:51
root / root
0644
scheduler.h
3.124 KB
May 28 2025 17:32:51
root / root
0644
scope.h
4.29 KB
May 28 2025 17:32:51
root / root
0644
select_handler.h
2.176 KB
May 28 2025 17:32:51
root / root
0644
semisync.h
2.233 KB
May 28 2025 17:32:51
root / root
0644
semisync_master.h
24.963 KB
May 28 2025 17:32:51
root / root
0644
semisync_master_ack_receiver.h
8.505 KB
May 28 2025 17:32:51
root / root
0644
semisync_slave.h
3.646 KB
May 28 2025 17:32:51
root / root
0644
service_versions.h
2.001 KB
May 28 2025 17:32:51
root / root
0644
session_tracker.h
13.94 KB
May 28 2025 17:32:51
root / root
0644
set_var.h
16.163 KB
May 28 2025 17:32:51
root / root
0644
slave.h
11.987 KB
May 28 2025 17:32:51
root / root
0644
socketpair.h
0.822 KB
May 28 2025 17:32:51
root / root
0644
source_revision.h
0.065 KB
May 28 2025 17:32:51
root / root
0644
sp.h
22.059 KB
May 28 2025 17:32:51
root / root
0644
sp_cache.h
1.997 KB
May 28 2025 17:32:51
root / root
0644
sp_head.h
62.997 KB
May 28 2025 17:32:51
root / root
0644
sp_pcontext.h
24.313 KB
May 28 2025 17:32:51
root / root
0644
sp_rcontext.h
13.998 KB
May 28 2025 17:32:51
root / root
0644
span.h
3.839 KB
May 28 2025 17:32:51
root / root
0644
spatial.h
21.782 KB
May 28 2025 17:32:51
root / root
0644
sql_acl.h
13.801 KB
May 28 2025 17:32:51
root / root
0644
sql_admin.h
2.847 KB
May 28 2025 17:32:51
root / root
0644
sql_alloc.h
1.691 KB
May 28 2025 17:32:51
root / root
0644
sql_alter.h
14.919 KB
May 28 2025 17:32:51
root / root
0644
sql_analyse.h
10.864 KB
May 28 2025 17:32:51
root / root
0644
sql_analyze_stmt.h
12.384 KB
May 28 2025 17:32:51
root / root
0644
sql_array.h
6.714 KB
May 28 2025 17:32:51
root / root
0644
sql_audit.h
13.616 KB
May 28 2025 17:32:51
root / root
0644
sql_base.h
25.273 KB
May 28 2025 17:32:51
root / root
0644
sql_basic_types.h
9.305 KB
May 28 2025 17:32:51
root / root
0644
sql_binlog.h
0.874 KB
May 28 2025 17:32:51
root / root
0644
sql_bitmap.h
7.661 KB
May 28 2025 17:32:51
root / root
0644
sql_bootstrap.h
1.77 KB
May 28 2025 17:32:51
root / root
0644
sql_cache.h
21.168 KB
May 28 2025 17:32:51
root / root
0644
sql_callback.h
1.506 KB
May 28 2025 17:32:51
root / root
0644
sql_class.h
261.108 KB
May 28 2025 17:32:51
root / root
0644
sql_cmd.h
9.2 KB
May 28 2025 17:32:51
root / root
0644
sql_connect.h
3.991 KB
May 28 2025 17:32:51
root / root
0644
sql_const.h
10.965 KB
May 28 2025 17:32:51
root / root
0644
sql_crypt.h
1.403 KB
May 28 2025 17:32:51
root / root
0644
sql_cte.h
16.146 KB
May 28 2025 17:32:51
root / root
0644
sql_cursor.h
2.262 KB
May 28 2025 17:32:51
root / root
0644
sql_db.h
2.383 KB
May 28 2025 17:32:51
root / root
0644
sql_debug.h
5.514 KB
May 28 2025 17:32:51
root / root
0644
sql_delete.h
1.312 KB
May 28 2025 17:32:51
root / root
0644
sql_derived.h
1.259 KB
May 28 2025 17:32:51
root / root
0644
sql_digest.h
3.729 KB
May 28 2025 17:32:51
root / root
0644
sql_digest_stream.h
1.53 KB
May 28 2025 17:32:51
root / root
0644
sql_do.h
0.932 KB
May 28 2025 17:32:51
root / root
0644
sql_error.h
38.66 KB
May 28 2025 17:32:51
root / root
0644
sql_explain.h
28.34 KB
May 28 2025 17:32:51
root / root
0644
sql_expression_cache.h
4.257 KB
May 28 2025 17:32:51
root / root
0644
sql_get_diagnostics.h
7.683 KB
May 28 2025 17:32:51
root / root
0644
sql_handler.h
2.842 KB
May 28 2025 17:32:51
root / root
0644
sql_help.h
0.972 KB
May 28 2025 17:32:51
root / root
0644
sql_hset.h
3.321 KB
May 28 2025 17:32:51
root / root
0644
sql_i_s.h
8.039 KB
May 28 2025 17:32:51
root / root
0644
sql_insert.h
2.589 KB
May 28 2025 17:32:51
root / root
0644
sql_join_cache.h
47.528 KB
May 28 2025 17:32:51
root / root
0644
sql_lex.h
168.504 KB
May 28 2025 17:32:51
root / root
0644
sql_lifo_buffer.h
9.449 KB
May 28 2025 17:32:51
root / root
0644
sql_limit.h
3.112 KB
May 28 2025 17:32:51
root / root
0644
sql_list.h
21.932 KB
May 28 2025 17:32:51
root / root
0644
sql_load.h
1.246 KB
May 28 2025 17:32:51
root / root
0644
sql_locale.h
2.638 KB
May 28 2025 17:32:51
root / root
0644
sql_manager.h
0.938 KB
May 28 2025 17:32:51
root / root
0644
sql_mode.h
6.577 KB
May 28 2025 17:32:51
root / root
0644
sql_parse.h
8.434 KB
May 28 2025 17:32:51
root / root
0644
sql_partition.h
11.789 KB
May 28 2025 17:32:51
root / root
0644
sql_partition_admin.h
5.801 KB
May 28 2025 17:32:51
root / root
0644
sql_plist.h
7.551 KB
May 28 2025 17:32:51
root / root
0644
sql_plugin.h
7.372 KB
May 28 2025 17:32:51
root / root
0644
sql_plugin_compat.h
2.185 KB
May 28 2025 17:32:51
root / root
0644
sql_prepare.h
11.142 KB
May 28 2025 17:32:51
root / root
0644
sql_priv.h
18.157 KB
May 28 2025 17:32:51
root / root
0644
sql_profile.h
7.633 KB
May 28 2025 17:32:51
root / root
0644
sql_reload.h
1.012 KB
May 28 2025 17:32:51
root / root
0644
sql_rename.h
0.959 KB
May 28 2025 17:32:51
root / root
0644
sql_repl.h
2.974 KB
May 28 2025 17:32:51
root / root
0644
sql_schema.h
3.226 KB
May 28 2025 17:32:51
root / root
0644
sql_select.h
86.814 KB
May 28 2025 17:32:51
root / root
0644
sql_sequence.h
5.059 KB
May 28 2025 17:32:51
root / root
0644
sql_servers.h
1.735 KB
May 28 2025 17:32:51
root / root
0644
sql_show.h
9.391 KB
May 28 2025 17:32:51
root / root
0644
sql_signal.h
3.283 KB
May 28 2025 17:32:51
root / root
0644
sql_sort.h
21.452 KB
May 28 2025 17:32:51
root / root
0644
sql_statistics.h
12.162 KB
May 28 2025 17:32:51
root / root
0644
sql_string.h
38.841 KB
May 28 2025 17:32:51
root / root
0644
sql_table.h
9.387 KB
May 28 2025 17:32:51
root / root
0644
sql_tablespace.h
0.934 KB
May 28 2025 17:32:51
root / root
0644
sql_test.h
1.552 KB
May 28 2025 17:32:51
root / root
0644
sql_time.h
8.178 KB
May 28 2025 17:32:51
root / root
0644
sql_trigger.h
12.043 KB
May 28 2025 17:32:51
root / root
0644
sql_truncate.h
2.03 KB
May 28 2025 17:32:51
root / root
0644
sql_tvc.h
2.361 KB
May 28 2025 17:32:51
root / root
0644
sql_type.h
288.513 KB
May 28 2025 17:32:51
root / root
0644
sql_type_fixedbin.h
62.813 KB
May 28 2025 17:32:51
root / root
0644
sql_type_fixedbin_storage.h
5.339 KB
May 28 2025 17:32:51
root / root
0644
sql_type_geom.h
18.639 KB
May 28 2025 17:32:51
root / root
0644
sql_type_int.h
9.767 KB
May 28 2025 17:32:51
root / root
0644
sql_type_json.h
6.011 KB
May 28 2025 17:32:51
root / root
0644
sql_type_real.h
1.228 KB
May 28 2025 17:32:51
root / root
0644
sql_type_string.h
1.591 KB
May 28 2025 17:32:51
root / root
0644
sql_udf.h
4.736 KB
May 28 2025 17:32:51
root / root
0644
sql_union.h
1.039 KB
May 28 2025 17:32:51
root / root
0644
sql_update.h
1.878 KB
May 28 2025 17:32:51
root / root
0644
sql_view.h
2.412 KB
May 28 2025 17:32:51
root / root
0644
sql_window.h
6.654 KB
May 28 2025 17:32:51
root / root
0644
ssl_compat.h
3.073 KB
May 28 2025 17:32:51
root / root
0644
strfunc.h
2.222 KB
May 28 2025 17:32:51
root / root
0644
structs.h
25.761 KB
May 28 2025 17:32:51
root / root
0644
sys_vars_shared.h
2.665 KB
May 28 2025 17:32:51
root / root
0644
t_ctype.h
5.507 KB
May 28 2025 17:32:51
root / root
0644
table.h
113.028 KB
May 28 2025 17:32:51
root / root
0644
table_cache.h
4.133 KB
May 28 2025 17:32:51
root / root
0644
thr_alarm.h
2.863 KB
May 28 2025 17:32:51
root / root
0644
thr_lock.h
7.178 KB
May 28 2025 17:32:51
root / root
0644
thr_malloc.h
1.174 KB
May 28 2025 17:32:51
root / root
0644
thr_timer.h
1.526 KB
May 28 2025 17:32:51
root / root
0644
thread_cache.h
5.767 KB
May 28 2025 17:32:51
root / root
0644
threadpool.h
4.697 KB
May 28 2025 17:32:51
root / root
0644
threadpool_generic.h
3.876 KB
May 28 2025 17:32:51
root / root
0644
threadpool_winsockets.h
2.236 KB
May 28 2025 17:32:51
root / root
0644
transaction.h
1.432 KB
May 28 2025 17:32:51
root / root
0644
tzfile.h
4.896 KB
May 28 2025 17:32:51
root / root
0644
tztime.h
3.317 KB
May 28 2025 17:32:51
root / root
0644
uniques.h
4.118 KB
May 28 2025 17:32:51
root / root
0644
unireg.h
7.535 KB
May 28 2025 17:32:51
root / root
0644
vers_string.h
2.475 KB
May 28 2025 17:32:51
root / root
0644
violite.h
9.85 KB
May 28 2025 17:32:51
root / root
0644
waiting_threads.h
4.426 KB
May 28 2025 17:32:51
root / root
0644
welcome_copyright_notice.h
1.189 KB
May 28 2025 17:32:51
root / root
0644
win_tzname_data.h
6.354 KB
May 28 2025 17:32:51
root / root
0644
winservice.h
1.166 KB
May 28 2025 17:32:51
root / root
0644
wqueue.h
1.528 KB
May 28 2025 17:32:51
root / root
0644
wsrep.h
3.23 KB
May 28 2025 17:32:51
root / root
0644
wsrep_applier.h
2.64 KB
May 28 2025 17:32:51
root / root
0644
wsrep_binlog.h
3.36 KB
May 28 2025 17:32:51
root / root
0644
wsrep_client_service.h
2.5 KB
May 28 2025 17:32:51
root / root
0644
wsrep_client_state.h
1.529 KB
May 28 2025 17:32:51
root / root
0644
wsrep_condition_variable.h
1.449 KB
May 28 2025 17:32:51
root / root
0644
wsrep_high_priority_service.h
4.797 KB
May 28 2025 17:32:51
root / root
0644
wsrep_mutex.h
1.188 KB
May 28 2025 17:32:51
root / root
0644
wsrep_mysqld.h
20.643 KB
May 28 2025 17:32:51
root / root
0644
wsrep_mysqld_c.h
1.198 KB
May 28 2025 17:32:51
root / root
0644
wsrep_on.h
1.678 KB
May 28 2025 17:32:51
root / root
0644
wsrep_priv.h
1.596 KB
May 28 2025 17:32:51
root / root
0644
wsrep_schema.h
4.827 KB
May 28 2025 17:32:51
root / root
0644
wsrep_server_service.h
3.546 KB
May 28 2025 17:32:51
root / root
0644
wsrep_server_state.h
2.231 KB
May 28 2025 17:32:51
root / root
0644
wsrep_sst.h
3.858 KB
May 28 2025 17:32:51
root / root
0644
wsrep_storage_service.h
1.767 KB
May 28 2025 17:32:51
root / root
0644
wsrep_thd.h
10.898 KB
May 28 2025 17:32:51
root / root
0644
wsrep_trans_observer.h
17.694 KB
May 28 2025 17:32:51
root / root
0644
wsrep_types.h
0.974 KB
May 28 2025 17:32:51
root / root
0644
wsrep_utils.h
9.072 KB
May 28 2025 17:32:51
root / root
0644
wsrep_var.h
4.499 KB
May 28 2025 17:32:51
root / root
0644
wsrep_xid.h
1.513 KB
May 28 2025 17:32:51
root / root
0644
xa.h
1.802 KB
May 28 2025 17:32:51
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF