public void writeToZookeeper(byte[] entry, byte[] permsData) {
    String entryName = Bytes.toString(entry);
    String zkNode = ZNodePaths.joinZNode(watcher.getZNodePaths().baseZNode, ACL_NODE);
    zkNode = ZNodePaths.joinZNode(zkNode, entryName);

    try {
      ZKUtil.createWithParents(watcher, zkNode);
      ZKUtil.updateExistingNodeData(watcher, zkNode, permsData, -1);
    } catch (KeeperException e) {
      LOG.error("Failed updating permissions for entry '" + entryName + "'", e);
      watcher.abort("Failed writing node " + zkNode + " to zookeeper", e);
    }
  }
Write a table's access controls to the permissions mirror in zookeeper
hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/ZKPermissionWatcher.java