hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1431142 - /hbase/branches/0.94/security/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java
Date Wed, 09 Jan 2013 23:15:13 GMT
Author: tedyu
Date: Wed Jan  9 23:15:12 2013
New Revision: 1431142

URL: http://svn.apache.org/viewvc?rev=1431142&view=rev
Log:
HBASE-7524 hbase-policy.xml is improperly set thus all rules in it can be by-passed (Kai Zheng)


Modified:
    hbase/branches/0.94/security/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java

Modified: hbase/branches/0.94/security/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/security/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java?rev=1431142&r1=1431141&r2=1431142&view=diff
==============================================================================
--- hbase/branches/0.94/security/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java
(original)
+++ hbase/branches/0.94/security/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java
Wed Jan  9 23:15:12 2013
@@ -44,7 +44,7 @@ public class HBasePolicyProvider extends
   public static void init(Configuration conf,
       ServiceAuthorizationManager authManager) {
     // set service-level authorization security policy
-    conf.set("hadoop.policy.file", "hbase-policy.xml");
+    System.setProperty("hadoop.policy.file", "hbase-policy.xml");
     if (conf.getBoolean(
           ServiceAuthorizationManager.SERVICE_AUTHORIZATION_CONFIG, false)) {
       authManager.refresh(conf, new HBasePolicyProvider());



Mime
View raw message