diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2005-03-05 14:35:32 +0300 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2005-03-05 14:35:32 +0300 |
commit | 0d7e68c92a4ded30d02a66b434cbe624c3df5e1e (patch) | |
tree | d882344cb6e35451bd9dffbfd69b088912a9fce8 /sql/sql_acl.h | |
parent | 0ae5efb4dc1df3af598030cf7b96b95841306c70 (diff) | |
download | mariadb-git-0d7e68c92a4ded30d02a66b434cbe624c3df5e1e.tar.gz |
WL2131: Access control for SHOW ... PROCEDURE|FUNCTION ...
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r-- | sql/sql_acl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h index 3a9df84a35d..30e335c7afd 100644 --- a/sql/sql_acl.h +++ b/sql/sql_acl.h @@ -63,6 +63,9 @@ #define PROC_ACLS \ (ALTER_PROC_ACL | EXECUTE_ACL | GRANT_ACL) +#define SHOW_PROC_ACLS \ +(ALTER_PROC_ACL | EXECUTE_ACL | CREATE_PROC_ACL) + #define GLOBAL_ACLS \ (SELECT_ACL | INSERT_ACL | UPDATE_ACL | DELETE_ACL | CREATE_ACL | DROP_ACL | \ RELOAD_ACL | SHUTDOWN_ACL | PROCESS_ACL | FILE_ACL | GRANT_ACL | \ @@ -216,6 +219,7 @@ void fill_effective_table_privileges(THD *thd, GRANT_INFO *grant, const char *db, const char *table); bool sp_revoke_privileges(THD *thd, const char *sp_db, const char *sp_name); bool sp_grant_privileges(THD *thd, const char *sp_db, const char *sp_name); +bool check_routine_level_acl(THD *thd, char *db, char *name); #ifdef NO_EMBEDDED_ACCESS_CHECKS #define check_grant(A,B,C,D,E,F) 0 |