|
1 | 1 | /* |
2 | | - * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
|
23 | 23 |
|
24 | 24 | import java.io.FilePermission; |
25 | 25 | import java.io.IOException; |
| 26 | +import java.lang.reflect.ReflectPermission; |
26 | 27 | import java.security.CodeSource; |
27 | 28 | import java.security.Permission; |
28 | 29 | import java.security.PermissionCollection; |
@@ -205,14 +206,19 @@ public void setBasicPermissions() { |
205 | 206 | permissions.add(new RuntimePermission("getClassLoader")); |
206 | 207 | permissions.add(new RuntimePermission("setSecurityManager")); |
207 | 208 | permissions.add(new RuntimePermission("createSecurityManager")); |
208 | | - permissions.add(new PropertyPermission("testng.show.stack.frames", |
209 | | - "read")); |
210 | 209 | permissions.add(new PropertyPermission("user.dir", "read")); |
211 | 210 | permissions.add(new PropertyPermission("test.src", "read")); |
212 | 211 | permissions.add(new PropertyPermission("file.separator", "read")); |
213 | 212 | permissions.add(new PropertyPermission("line.separator", "read")); |
214 | 213 | permissions.add(new PropertyPermission("fileStringBuffer", "read")); |
215 | 214 | permissions.add(new PropertyPermission("dataproviderthreadcount", "read")); |
| 215 | + permissions.add(new PropertyPermission("testng.show.stack.frames", |
| 216 | + "read")); |
| 217 | + permissions.add(new PropertyPermission("testng.thread.affinity", "read")); |
| 218 | + permissions.add(new PropertyPermission("testng.mode.dryrun", "read")); |
| 219 | + permissions.add(new PropertyPermission("testng.report.xml.name", "read")); |
| 220 | + permissions.add(new PropertyPermission("testng.timezone", "read")); |
| 221 | + permissions.add(new ReflectPermission("suppressAccessChecks")); |
216 | 222 | permissions.add(new FilePermission("<<ALL FILES>>", "execute")); |
217 | 223 | } |
218 | 224 |
|
|
0 commit comments