HBASE-26985 check permission for SecureBulkLoadManager (#4379)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
313a37f7ac
commit
c0e8243c8b
|
@ -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