List:Internals« Previous MessageNext Message »
From:Sergey Kudriavtsev Date:June 29 2008 6:50pm
Subject:Adding new grant problem
View as plain text  
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
Thread
Adding new grant problemSergey Kudriavtsev29 Jun