improve wall filter, add allowDoPrivileged

This commit is contained in:
wenshao
2012-12-10 18:16:18 +08:00
parent 2abc2d207e
commit b4ba5d6a3f
3 changed files with 16 additions and 2 deletions
@@ -57,6 +57,8 @@ public class WallConfig implements WallConfigMBean {
private boolean mustParameterized = false;
private boolean allowDoPrivileged = false;
protected final Set<String> permitFunctions = new HashSet<String>();
protected final Set<String> permitTables = new HashSet<String>();
protected final Set<String> permitSchemas = new HashSet<String>();
@@ -73,6 +75,14 @@ public class WallConfig implements WallConfigMBean {
}
public boolean isAllowDoPrivileged() {
return allowDoPrivileged;
}
public void setAllowDoPrivileged(boolean allowDoPrivileged) {
this.allowDoPrivileged = allowDoPrivileged;
}
public boolean isInited() {
return inited;
}