HBASE-7524 hbase-policy.xml is improperly set thus all rules in it can be by-passed (Kai Zheng)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1431049 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-01-09 20:39:52 +00:00
parent a7fa6e348a
commit 3decb8b16e
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class HBasePolicyProvider extends PolicyProvider {
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());