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

[Feature]: create a PID namespace #255

Open
babaric-dev opened this issue Jan 29, 2023 · 1 comment
Open

[Feature]: create a PID namespace #255

babaric-dev opened this issue Jan 29, 2023 · 1 comment

Comments

@babaric-dev
Copy link

Can we have PID 1 using PID namespace? unshare() does it but requires root.

@michalbednarski
Copy link
Collaborator

I guess I could implrmrny emulated PID namespace in proot by registering first process as subreaper and overriding getpid() (and then also getppid()/kill()/getpgid() ? Besides first process (fake pid 1) other pids would remain same; pid 1 could only be launched through proot command line)

Though the question is what you're trying to achieve, I'd guess pidns wouldn't be sufficient to run systemd

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

No branches or pull requests

2 participants