Github user zhangh43 commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/1087#discussion_r96174625
  
    --- Diff: src/backend/catalog/aclchk.c ---
    @@ -2670,28 +2670,50 @@ List *getActionName(AclMode mask)
     bool fallBackToNativeCheck(AclObjectKind objkind, Oid obj_oid, Oid roleid)
     {
       //for heap table, we fall back to native check.
    -  if(objkind == ACL_KIND_CLASS)
    +  if (objkind == ACL_KIND_CLASS)
       {
         char relstorage = get_rel_relstorage(obj_oid);
    -    if(relstorage == 'h')
    +    if (relstorage == 'h')
         {
           return true;
         }
       }
    +  else if (objkind == ACL_KIND_NAMESPACE)
    +  {
    +   //native check build-in schemas.
    +    if (obj_oid == PG_CATALOG_NAMESPACE || obj_oid == 
PG_INFORMATION_SCHEMA_NAMESPACE
    --- End diff --
    
    I think gp_toolkit should be managed by Ranger.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to