HBASE-26985 check permission for SecureBulkLoadManager (#4379)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
58aaed19b0
commit
286c9c3327
|
@ -125,6 +125,10 @@ public class SecureBulkLoadManager {
|
|||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue