-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CRIU security provider #494
Conversation
src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/CRIUSECProvider.java
Show resolved
Hide resolved
@mstoodle some of the code for CRIU security provider is taken from other OpenJDK security providers (specifically SUN security provider). Is this OK in term of licensing? The code was changed to remove some state and add methods that will wipe out any state forcibly during CRIU checkpoint. fyi @vijaysun-omr |
You need to retain the Oracle copyright & license in new files where this code is used, and add an IBM copyright for the IBM changes. |
If there are new files which are 100% IBM code, there is a similar IBM license that should be used. Somebody can find an example if you need that. |
This file has an example of the IBM license. |
To explain about the |
It is ok so long as you follow the steps Peter listed above. |
Thank you! I moved the new files to the |
closed/src/java.base/share/classes/com/ibm/security/criu/CRIUSECProvider.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/NativePRNG.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/NativePRNG.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/NativePRNG.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/NativePRNG.java
Outdated
Show resolved
Hide resolved
a96482b
to
cc38c31
Compare
closed/src/java.base/share/classes/com/ibm/security/criu/NativePRNG.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/NativePRNG.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/SHA.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/java/security/CRIUConfigurator.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/CRIUSECProvider.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/CRIUSECProvider.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Outdated
Show resolved
Hide resolved
fa0d2f7
to
a5fcea6
Compare
Variants of this will be needed for other Java versions, otherwise I think builds configured with |
@keithc-ca jdk8 will not support |
Perhaps Tobi forgot about ibmruntimes/openj9-openjdk-jdk8#508 ? |
Maybe in a separated PR, CRIU specific code need to be decorated w/ JPP flag |
Im working on a PR to disable it on JDK8 for the time being. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just need to add the JPP flags. Talk to @JasonFengJ9 for more info on this
closed/src/java.base/share/classes/com/ibm/security/criu/CRIUSECProvider.java
Show resolved
Hide resolved
closed/src/java.base/share/classes/com/ibm/security/criu/DigestBase.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JasonFengJ9 please double check the usage of JPP flags
JPP flag usage looks good. The java files have to be added explicitly for JPP processing like openj9-openjdk-jdk11/closed/GensrcJ9JCL.gmk Lines 50 to 56 in b88a5c6
|
A draft change - https://github.com/JasonFengJ9/openj9-openjdk-jdk11/blob/criu-sec/closed/GensrcJ9JCL.gmk |
Just on second thought, following files can be moved into openj9 repo, and take advantage of JPP w/o coping into Edit: |
There's a lot of repetition that should be captured in a macro or via use of |
Perhaps a simpler longer-term solution would be to feed all of the Java source within |
Created Apply JPP to JCL patch files within $(TOPDIR)/closed. |
Signed-off-by: Zainab Fatmi <zainab@ibm.com>
#501 has been merged. |
Zainab is out sick |
Superseded by #510. |
Specialized security provider needed for CRIU
Signed-off-by: Zainab Fatmi zainab@ibm.com