org.apache.hadoop.hdfs.server.namenode.INodeAttributeProvider.AccessControlEnforcerpublic class RouterPermissionChecker
extends org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker
| Modifier and Type | Field | Description |
|---|---|---|
static short |
MOUNT_TABLE_PERMISSION_DEFAULT |
Mount table default permission.
|
| Constructor | Description |
|---|---|
RouterPermissionChecker(java.lang.String user,
java.lang.String group) |
|
RouterPermissionChecker(java.lang.String user,
java.lang.String group,
org.apache.hadoop.security.UserGroupInformation callerUgi) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkPermission(MountTable mountTable,
org.apache.hadoop.fs.permission.FsAction access) |
Whether a mount table entry can be accessed by the current context.
|
void |
checkSuperuserPrivilege() |
Check the superuser privileges of the current RPC caller.
|
checkPermission, checkPermission, checkPermissionWithContext, checkSuperuserPrivilege, denyUserAccess, getAttributesProvider, getUser, isMemberOfGroup, isSuperUser, setOperationTypepublic static final short MOUNT_TABLE_PERMISSION_DEFAULT
public RouterPermissionChecker(java.lang.String user,
java.lang.String group,
org.apache.hadoop.security.UserGroupInformation callerUgi)
public RouterPermissionChecker(java.lang.String user,
java.lang.String group)
throws java.io.IOException
java.io.IOExceptionpublic void checkPermission(MountTable mountTable, org.apache.hadoop.fs.permission.FsAction access) throws org.apache.hadoop.security.AccessControlException
mountTable - MountTable being accessedaccess - type of action being performed on the mount table entryorg.apache.hadoop.security.AccessControlException - if mount table cannot be accessedpublic void checkSuperuserPrivilege()
throws org.apache.hadoop.security.AccessControlException
checkSuperuserPrivilege in class org.apache.hadoop.hdfs.server.namenode.FSPermissionCheckerorg.apache.hadoop.security.AccessControlException - If the user is not authorized.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.