@Override
  public HiveResourceACLs getResourceACLs(HivePrivilegeObject hiveObject) {
    HiveResourceACLs acls = null;
    try {
      switch (hiveObject.getType()) {
      case DATABASE:
        Database db = Hive.get().getDatabase(hiveObject.getDbname());
        acls = getResourceACLs(new Path(db.getLocationUri()));
        break;
      case TABLE_OR_VIEW:
      case COLUMN:
        Table table = Hive.get().getTable(hiveObject.getDbname(), hiveObject.getObjectName());
        acls = getResourceACLs(new Path(table.getTTable().getSd().getLocation()));
        break;
      default:
        // Shall never happen
        throw new RuntimeException("Unknown request type:" + hiveObject.getType());
      }
    } catch (Exception e) {
    }
    return acls;
  }
PolicyProvider for storage based authorizer based on hdfs permission string
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/HDFSPermissionPolicyProvider.java