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:
parent
a7fa6e348a
commit
3decb8b16e
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue