Skip to content
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

OCI Add duplicate namespace detection and remove useless code #1564

Closed
wants to merge 0 commits into from

Conversation

sky-big
Copy link
Contributor

@sky-big sky-big commented Sep 23, 2024

1、OCI Add duplicate namespace detection;
2、Remove useless code when add duplicate namespace detection;

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments, if anything different changes must go into separate patches.

Please add a Signed-off-by line to the patch to fix the failing test

@@ -4816,7 +4818,6 @@ libcrun_run_linux_container (libcrun_container_t *container, container_entrypoin
else
{
init_status.idx_timens_to_join_immediately = i;
init_status.namespaces_to_unshare &= ~CLONE_NEWTIME;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to keep it so it is clear that the namespace doesn't need to be created

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@@ -4806,7 +4809,6 @@ libcrun_run_linux_container (libcrun_container_t *container, container_entrypoin
{
init_status.join_pidns = true;
init_status.idx_pidns_to_join_immediately = i;
init_status.namespaces_to_unshare &= ~CLONE_NEWPID;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants