MXS-1449 Firewall: Allow 'USE <db>'
When the database firewall filter is used in white-list mode, 'USE <db>' should be allowed. When connecting, it is always possible to specify the database anyway so restricting 'USE <db>' serves no purpose.
This commit is contained in:
@ -2310,6 +2310,7 @@ static bool command_is_mandatory(const GWBUF *buffer)
|
||||
{
|
||||
case MYSQL_COM_CHANGE_USER:
|
||||
case MYSQL_COM_FIELD_LIST:
|
||||
case MYSQL_COM_INIT_DB:
|
||||
case MYSQL_COM_PING:
|
||||
case MYSQL_COM_PROCESS_INFO:
|
||||
case MYSQL_COM_PROCESS_KILL:
|
||||
|
Reference in New Issue
Block a user