Repository navigation
Do unprivileged CRIU dump if requested+supported - #14836
Merged
Merged
Conversation
Member
Author
|
The corresponding Open Liberty PR is OpenLiberty/open-liberty#20683 |
ymanton
force-pushed
the
criu-unprivileged
branch
from
April 1, 2022 16:23
e63c98b to
7d81d4d
Compare
dsouzai
reviewed
Apr 1, 2022
ymanton
force-pushed
the
criu-unprivileged
branch
from
April 1, 2022 19:10
7d81d4d to
e90bad6
Compare
tajila
reviewed
Apr 1, 2022
tajila
left a comment
Contributor
There was a problem hiding this comment.
Looks good, just some formatting things
Contributor
There was a problem hiding this comment.
use camelCase for naming here
Contributor
There was a problem hiding this comment.
is it defined with bool in the criu API?
Member
Author
There was a problem hiding this comment.
Yes. I actually added the function since it is missing from checkpoint-restore/criu#1155 however other functions taking a boolean (e.g. criu_set_shell_job) also define their booleans as bool.
ymanton
force-pushed
the
criu-unprivileged
branch
from
April 1, 2022 20:38
e90bad6 to
1577bd4
Compare
tajila
approved these changes
Apr 5, 2022
Contributor
There was a problem hiding this comment.
please JNI_FALSE != unprivileged for consistency
If the user requests an unprivileged CRIU dump we check if a non-NULL `criu_set_unprivileged` symbol can be found via dlsym() and if so call it with `true` as the parameter. If the user requests an unprivileged CRIU dump but the symbol cannot be found we throw an exception. If the user does not request an unprivileged CRIU dump we do nothing as CRIU (currently) defaults to privileged. Also link against libdl to get access to dlsym(). Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
ymanton
force-pushed
the
criu-unprivileged
branch
from
April 6, 2022 04:59
1577bd4 to
cbb83ab
Compare
Contributor
|
Jenkins compile xlinuxcriu jdk11 |
Contributor
|
Jenkins test sanity win jdk8 |
Contributor
|
Jenkins test sanity plinux jdk11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If the user requests an unprivileged CRIU dump we check
if a non-NULL
criu_set_unprivilegedsymbol can be found viadlsym() and if so call it with
trueas the parameter.If the user requests an unprivileged CRIU dump but the symbol
cannot be found we throw an exception.
If the user does not request an unprivileged CRIU dump we do
nothing as CRIU (currently) defaults to privileged.
Also link against libdl to get access to dlsym().
Signed-off-by: Younes Manton ymanton@ca.ibm.com