Skip to content

Commit

Permalink
HBASE-26985 check permission for SecureBulkLoadManager (#4379)
Browse files Browse the repository at this point in the history
Signed-off-by: Viraj Jasani <[email protected]>
  • Loading branch information
skysiders authored and virajjasani committed Jun 2, 2022
1 parent 58aaed1 commit 286c9c3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public void start() throws IOException {
}
if (!fs.exists(baseStagingDir)) {
fs.mkdirs(baseStagingDir, PERM_HIDDEN);
if (!PERM_HIDDEN.equals(PERM_HIDDEN.applyUMask(FsPermission.getUMask(conf)))) {
LOG.info("Modifying permissions to " + PERM_HIDDEN);
fs.setPermission(baseStagingDir, PERM_HIDDEN);
}
}
}

Expand Down

0 comments on commit 286c9c3

Please sign in to comment.