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

Add missing linux namespaces in get_default_namespaces() #198

Closed

Conversation

musaprg
Copy link
Contributor

@musaprg musaprg commented Aug 17, 2024

IIUC we don't need to exclude user and time namespace from the results of get_default_namespaces, so this PR adds them.

Considerations

There are two lines where youki use get_default_namespaces().

I've checked the libcontainer code of runc, and it wouldn't introduce a side-effect by this change.

Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>
@musaprg musaprg marked this pull request as ready for review August 17, 2024 16:21
@musaprg musaprg closed this Aug 17, 2024
@musaprg
Copy link
Contributor Author

musaprg commented Aug 17, 2024

sorry I've noticed the runc's default doesn't include user and time namespaces. Let me re-consider my patch.

https://github.com/opencontainers/runc/blob/376e875fdda29d4bc016ca8114094991814d7dc5/libcontainer/specconv/example.go#L136-L151

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.

1 participant