From: Date: June 29 2008 6:50pm Subject: Adding new grant problem List-Archive: http://lists.mysql.com/internals/35758 Message-Id: <51bf6c140806290950u388d49f9p56a354dcedf9c533@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello everyone, As a part of RBAC implementation I'm now trying to add two new grants to MySQL server - specifically, CREATE ROLE and DROP ROLE. The problem is I can't find how to modify sql_yacc.yy file for GRANT statement to work as desired. I have already done the following: 1. Added new token ROLE 2. Added strings | CREATE ROLE { Lex->grant |= CREATE_ROLE_ACL; } | DROP ROLE { Lex->grant |= DROP_ROLE_ACL; } in "object_privilege:" right 3. Added corresponding CREATE_ROLE_ACL and DROP_ROLE_ACL definitions in sql_acl.h What else must have been done for this to work? Thanks in advance. -- Best regards, Sergey Kudriavtsev