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 <vjasani@apache.org>
  • Loading branch information
skysiders authored Jun 2, 2022
1 parent 313a37f commit c0e8243
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 c0e8243

Please sign in to comment.