Skip to content

Rework namespace functions and types - #1437

Closed
rusty-snake wants to merge 3 commits into
bytecodealliance:mainfrom
rusty-snake:ns-ng
Closed

rusty-snake wants to merge 3 commits into
bytecodealliance:mainfrom
rusty-snake:ns-ng

Conversation

@rusty-snake

@rusty-snake rusty-snake commented Apr 6, 2025 •

Copy link
Copy Markdown
Contributor

Successor of #1402

  • Add set_namespace function.
  • Deprecate move_into_link_name_space and move_into_thread_name_spaces functions.
  • Add NamespaceType.
  • Deprecate ThreadNameSpaceType and LinkNameSpaceType.
  • Add nsfs ioctls.
  • Add NoArgGetter ioctl pattern.

Waiting on linux-raw-sys:

  • NS_GET_PID_FROM_PIDNS
  • NS_GET_TGID_FROM_PIDNS
  • NS_GET_PID_IN_PIDNS
  • NS_GET_TGID_IN_PIDNS

- Add `set_namespace` function.
- Deprecate `move_into_link_name_space` and
  `move_into_thread_name_spaces` functions.
- Add `NamespaceType`.
- Deprecate `ThreadNameSpaceType` and `LinkNameSpaceType`.
- Add nsfs ioctls.
- Add `NoArgGetter` ioctl pattern.
- Update libc to 0.2.174.
@rusty-snake

Copy link
Copy Markdown
Contributor Author

TODO: Rebase onto changes from #1482 and add a unshare_namespace function that is safe and allows only CLONE_NEW* flags.

@rusty-snake rusty-snake closed this by deleting the head repository Oct 30, 2026
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