Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(pivot_root): add pivot_root utility#443

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sargas wants to merge1 commit intouutils:main
base:main
Choose a base branch
Loading
fromsargas:pivot_root

Conversation

@sargas
Copy link

Implementedpivot_root, which is a simple wrapper for thepivot_root(2) syscall to enable changing the root filesystem.
Only Linux systems (including Android) have the needed syscall. I also tried to include descriptive error handling.

Implement the pivot_root(2) syscall wrapper for changing the rootfilesystem. This utility is commonly used during container initializationand system boot.Features:- Linux/Android support via direct syscall- Graceful error on unsupported platforms- Detailed error messages with errno-specific hints- Non-UTF-8 path support via OsStringThe implementation delegates all path validation to the kernel,only checking for embedded null bytes which are invalid for C strings.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@sargas

[8]ページ先頭

©2009-2025 Movatter.jp