Hey, finally Felix is running with security also 🙂
No big changes needed.
As mentioned before the
org/apache/felix/org.apache.felix.security/1.4.0/
org.apache.felix.framework.security-1.4.0.jar=1
is neede within the startup config (Equinox didn’t need this one)
The custom.properties are setup only contain the org.osgi.framework.security=osgi
entry and the system.properties only contain this:
java.security.policy=${karaf.base}/etc/all.policy
java.security.manager
An additional File called security.policy is also added to the etc folder, but somehow the content doesn’t seem to be parsed, even though the SecurityManager of Felix should consume this file.
Anyway here is the content I added to the file:
DENY {
( java.lang.RuntimePermission "exitVM")
}
ALLOW {
( java.security.AllPermission "*" "*")
}
Schreibe einen Kommentar