|
@@ -175,6 +175,7 @@ public class FSDirectory implements Closeable {
|
|
|
private final ReentrantReadWriteLock dirLock;
|
|
|
|
|
|
private final boolean isPermissionEnabled;
|
|
|
+ private final boolean isPermissionContentSummarySubAccess;
|
|
|
/**
|
|
|
* Support for ACLs is controlled by a configuration flag. If the
|
|
|
* configuration flag is false, then the NameNode will reject all
|
|
@@ -274,6 +275,9 @@ public class FSDirectory implements Closeable {
|
|
|
this.isPermissionEnabled = conf.getBoolean(
|
|
|
DFSConfigKeys.DFS_PERMISSIONS_ENABLED_KEY,
|
|
|
DFSConfigKeys.DFS_PERMISSIONS_ENABLED_DEFAULT);
|
|
|
+ this.isPermissionContentSummarySubAccess = conf.getBoolean(
|
|
|
+ DFSConfigKeys.DFS_PERMISSIONS_CONTENT_SUMMARY_SUBACCESS_KEY,
|
|
|
+ DFSConfigKeys.DFS_PERMISSIONS_CONTENT_SUMMARY_SUBACCESS_DEFAULT);
|
|
|
this.fsOwnerShortUserName =
|
|
|
UserGroupInformation.getCurrentUser().getShortUserName();
|
|
|
this.supergroup = conf.get(
|
|
@@ -538,6 +542,9 @@ public class FSDirectory implements Closeable {
|
|
|
boolean isAclsEnabled() {
|
|
|
return aclsEnabled;
|
|
|
}
|
|
|
+ boolean isPermissionContentSummarySubAccess() {
|
|
|
+ return isPermissionContentSummarySubAccess;
|
|
|
+ }
|
|
|
|
|
|
@VisibleForTesting
|
|
|
public boolean isPosixAclInheritanceEnabled() {
|