You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2021/03/20 20:10:58 UTC
[GitHub] [hadoop] vivekratnavel commented on a change in pull request #2784: HDFS-15850. Superuser actions should be reported to external enforcers
vivekratnavel commented on a change in pull request #2784:
URL: https://github.com/apache/hadoop/pull/2784#discussion_r598154449
##########
File path: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
##########
@@ -7665,7 +7670,7 @@ void addCachePool(CachePoolInfo req, boolean logRetryCache)
checkOperation(OperationCategory.WRITE);
String poolInfoStr = null;
try {
- checkSuperuserPrivilege();
+ checkSuperuserPrivilege(operationName);
Review comment:
That's a good suggestion @xiaoyuyao. We cannot add the cache pool name for "addCachePool()" method since the superuser check needs to happen before adding the cache pool and we get the name only after it's added. But, I will set the cache pool name in context for modify and remove methods.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org