You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by rm...@apache.org on 2021/06/14 18:16:00 UTC

[ranger] branch master updated: RANGER-3316: Fix Plugin's audit excluded roles configuration

This is an automated email from the ASF dual-hosted git repository.

rmani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 87a8eb9  RANGER-3316: Fix Plugin's audit excluded roles configuration
87a8eb9 is described below

commit 87a8eb9dfcd535044fd16b3433f6b4b96750b412
Author: Naoki Takezoe <ta...@gmail.com>
AuthorDate: Mon Jun 14 23:14:58 2021 +0900

    RANGER-3316: Fix Plugin's audit excluded roles configuration
    
    Signed-off-by: Ramesh Mani <rm...@cloudera.com>
---
 .../apache/ranger/authorization/hadoop/config/RangerPluginConfig.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerPluginConfig.java b/agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerPluginConfig.java
index 3e35709..10a2a83 100644
--- a/agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerPluginConfig.java
+++ b/agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerPluginConfig.java
@@ -182,7 +182,7 @@ public class RangerPluginConfig extends RangerConfiguration {
     public void setAuditExcludedUsersGroupsRoles(Set<String> users, Set<String> groups, Set<String> roles) {
         auditExcludedUsers  = CollectionUtils.isEmpty(users) ? Collections.emptySet() : new HashSet<>(users);
         auditExcludedGroups = CollectionUtils.isEmpty(groups) ? Collections.emptySet() : new HashSet<>(groups);
-        auditExcludedRoles  = CollectionUtils.isEmpty(groups) ? Collections.emptySet() : new HashSet<>(roles);
+        auditExcludedRoles  = CollectionUtils.isEmpty(roles) ? Collections.emptySet() : new HashSet<>(roles);
 
         if (LOG.isDebugEnabled()) {
             LOG.debug("auditExcludedUsers=" + auditExcludedUsers + ", auditExcludedGroups=" + auditExcludedGroups + ", auditExcludedRoles=" + auditExcludedRoles);