This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new 1929c14ee4 fix security manager permission. (#6174)
1929c14ee4 is described below
commit 1929c14ee47c246469cb164bbd82841d7cea709d
Author: ZhangHongYin <[email protected]>
AuthorDate: Tue Jun 7 09:11:07 2022 +0800
fix security manager permission. (#6174)
---
.../java/org/apache/iotdb/db/integration/IoTDBCheckConfigIT.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBCheckConfigIT.java
b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBCheckConfigIT.java
index d9f56a616e..7449eafb63 100644
---
a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBCheckConfigIT.java
+++
b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBCheckConfigIT.java
@@ -74,6 +74,12 @@ public class IoTDBCheckConfigIT {
throw new AccessControlException("Wrong system config");
}
}
+
+ public void checkPermission(Permission permission, Object context) {
+ if (permission.getName().startsWith("exitVM")) {
+ throw new AccessControlException("Wrong system config");
+ }
+ }
};
System.setSecurityManager(securityManager);
bytes = new ByteArrayOutputStream();