|
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;
|
@@ -202,14 +203,19 @@ public void setBasicPermissions() {
|
202 | 203 | permissions.add(new RuntimePermission("getClassLoader"));
|
203 | 204 | permissions.add(new RuntimePermission("setSecurityManager"));
|
204 | 205 | permissions.add(new RuntimePermission("createSecurityManager"));
|
205 |
| - permissions.add(new PropertyPermission("testng.show.stack.frames", |
206 |
| - "read")); |
207 | 206 | permissions.add(new PropertyPermission("user.dir", "read"));
|
208 | 207 | permissions.add(new PropertyPermission("test.src", "read"));
|
209 | 208 | permissions.add(new PropertyPermission("file.separator", "read"));
|
210 | 209 | permissions.add(new PropertyPermission("line.separator", "read"));
|
211 | 210 | permissions.add(new PropertyPermission("fileStringBuffer", "read"));
|
212 | 211 | permissions.add(new PropertyPermission("dataproviderthreadcount", "read"));
|
| 212 | + permissions.add(new PropertyPermission("testng.show.stack.frames", |
| 213 | + "read")); |
| 214 | + permissions.add(new PropertyPermission("testng.thread.affinity", "read")); |
| 215 | + permissions.add(new PropertyPermission("testng.mode.dryrun", "read")); |
| 216 | + permissions.add(new PropertyPermission("testng.report.xml.name", "read")); |
| 217 | + permissions.add(new PropertyPermission("testng.timezone", "read")); |
| 218 | + permissions.add(new ReflectPermission("suppressAccessChecks")); |
213 | 219 | permissions.add(new FilePermission("<<ALL FILES>>", "execute"));
|
214 | 220 | }
|
215 | 221 |
|
|
0 commit comments