assign permissions to a created role? i want to assign permissions to a role in my hook_install() , but the permissions that i'm adding are part of my modules hook_permission()
 don't exist yet?
so how to grant permissions role created in hook_install after hook_permission ?

NB :  


i have D7.23
     - 
my module create the role and his permissions .

Thanks.
the solution found in http://www.dibe.gr/blog/drupal-7-create-users-and-roles-programmatically in the author comment , so i'm set only the permissions array of my custom module in hook_install() user_role_grant_permissions($role_rid,array_keys(module_invoke('my_module', 'permission')));