-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
- Running NestedRemoteContextTestCase (from WildFly testsuite/integration/basic) with security manager, like
./integration-tests.sh -Dts.basic -Dts.noSmoke -Dtest=NestedRemoteContextTestCase -Dsecurity.manager
results in exception:
java.io.IOException: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found
To make it work, permissions like following need to be added to permissions.xml of ejb.ear:
new FilePermission("/home/okotek/git/wildfly/dist/target/wildfly-10.0.0.CR5-SNAPSHOT/modules/system/layers/base/org/jboss/xnio/nio/main/*", "read"), new FilePermission("/home/okotek/git/wildfly/dist/target/wildfly-10.0.0.CR5-SNAPSHOT/modules/system/layers/base/org/jboss/marshalling/river/main/*", "read"), new RemotingPermission("createEndpoint"), new RuntimePermission("createXnioWorker"), new RemotingPermission("addConnectionProvider"), new RuntimePermission("modifyThread"), new RuntimePermission("accessDeclaredMembers"), new ReflectPermission("suppressAccessChecks")
which is very confusing.
Why do I need add seemingly unrelated permissions, like FilePermission for XNIO and marshalling or RuntimePermission for createXnioWorker? Such behavior should be fixed or properly documented.
- blocks
-
WFLY-5169 "XNIO001001: No XNIO provider found" by some tests in main TS with security manager
- Closed
-
WFLY-6542 Fix issues in tests with Security Manager
- Open
- is blocked by
-
WFCORE-1350 Upgrade XNIO to >= 3.3.5.Final
- Resolved
-
WFCORE-1349 Upgrate JBoss Marshalling to >= 1.4.11.Final
- Closed
-
WFLY-8273 Upgrade to WildFly Naming Client 1.0.0.Beta12
- Closed
- is caused by
-
JBMAR-182 Marhsaller factory service loader should be privileged
- Resolved
-
WFNC-23 WildFlyRootContext needs to initiate Service Loaders within privileged blocks
- Resolved
-
XNIO-261 Service loaders created without privileges
- Resolved
-
JBEAP-11034 (7.0.z) Marhsaller factory service loader should be privileged
- Closed
- is cloned by
-
JBEAP-2770 FilePermission for XNIO and Marshalling modules are required for Remoting to run with security manager
- Verified