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

EINVAL error for setns(target_ns_pid, "user") #1

Open
jaharkes opened this issue Feb 9, 2023 · 0 comments
Open

EINVAL error for setns(target_ns_pid, "user") #1

jaharkes opened this issue Feb 9, 2023 · 0 comments

Comments

@jaharkes
Copy link
Member

jaharkes commented Feb 9, 2023

This is when called from sinfonia-tier3 after the child process has been started with unshare and we are trying to attach the newly created wireguard tun device to the namespace created by unshare.

Have seen this on two systems so far and it seems to be related to how the python virtualenv is set up but the exact reason for the EINVAL error is not clear. So far I've been able to exclude kernel version and python interpreter version differences as culprits.

In one case I had a working and a non-working Ubuntu 20.04 and the only difference seemed to be that the working one used the latest version of pipx (1.2.0) installed from pypi (pip install --user pipx), while the broken installation had both an apt-installed version of pipx (0.12.3.1-2ubuntu1) as well as the pypi version which was causing some other very odd but interesting breakage, like pipx list hanging unless it was run under strace.

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

1 participant