-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
oci: use /proc/self/fd/FD to open unix socket #8933
oci: use /proc/self/fd/FD to open unix socket #8933
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cool idea, why is it draft? |
just to make sure it solves the reported issue before we merge |
LGTM |
Change LGTM, but I'd like verification from someone actually seeing the issue. |
if you run rootless with a UID > like 10000 you run into this issue pretty easily. I have tested and it fixes the issue for me:
where bin/podman is this fork |
Ok we can merge once @giuseppe changes this to not draft and it actually passes the tests. |
ready to merge! |
cbec4b7
to
70cdb31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
e8a9677
to
5fa2744
Compare
instead of opening directly the UNIX socket path, grab a reference to it through a O_PATH file descriptor and use the fixed size string "/proc/self/fd/%d" to open the UNIX socket. In this way it won't hit the 108 chars length limit. Closes: containers#8798 Signed-off-by: Giuseppe Scrivano <[email protected]>
5fa2744
to
fdbc278
Compare
/lgtm |
/hold cancel |
instead of opening directly the UNIX socket path, grab a reference to
it through a O_PATH file descriptor and use the fixed size string
"/proc/self/fd/%d" to open the UNIX socket. In this way it won't hit
the 108 chars length limit.
Closes: #8798
Signed-off-by: Giuseppe Scrivano [email protected]