-
Notifications
You must be signed in to change notification settings - Fork 378
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
unix domain socket filepaths should be translated #8
Comments
Nice catch! I'm looking at this problem. |
Thank you! :-) On Thu, Feb 21, 2013 at 3:28 AM, Cédric VINCENT notifications@github.comwrote:
|
Commit 2001f0d should fix this problem. |
Oops, the related test-case fails on Ubuntu: https://travis-ci.org/cedric-vincent/PRoot/builds/5039014/#L117 |
It works on Ubuntu locally. Maybe the problem is due to the Travis sandboxing: https://travis-ci.org/cedric-vincent/PRoot/builds/5039412/#L2729 |
I forgot to handle socketcall(2) too. |
commit da92b78 fixes a critical bug in the previous implementation. I checked it now works with tmux on x86_64. Support for socketcall(2) and sendto(2) is still missing. |
Hello @hhm0 Do you confirm the release v2.4.1 works as expected in this regard? Regards, |
For tmux, and for socat using unix/unix-listen or Thanks for the fixes sofar! Awesome work! :-) On Tue, Apr 9, 2013 at 4:55 AM, Cédric VINCENT notifications@github.comwrote:
|
Many thanks for all these tests! I'm able to reproduce the problem with dtach. I'll keep you informed. |
As of my understanding, the issue with dtach under proot is due to the
I'll create a new entry for this issue. Note: |
The problem with dtach was moved to issue #11, feel free to re-open this issue if Unix domain sockets doesn't work as expected. Thanks for your bug/test reports! |
Change-Id: I0c2dab27efe9ee54e1f5fddd76f663dbc8eec797 Reported-By: <heehooman@gmail.com> Ref: proot-me/proot#8
Please, implement this for sendto() too. I have a test case which works without proot but fails with proot as of v5.1.0:
|
Hi @pespin , thanks for reaching out! Would you consider submitting a Pull Request? |
Sure, I'll do it whenever I have some time soon if nobody does it before me. |
update travis
Currently, paths for Unix domain sockets are not being translated to target paths..
This can prevent programs which depend on them to fail (which can cause filesystem errors which may not make sense to a user), or to need customized settings (e.g.
tmux -S ./tmp/tmux
, without/
at beginning of filepath).I think the fix would be to detect the
bind
system call whensockaddr.sun_family
equalsAF_UNIX
, and then translatesockaddr.sun_path
to a target filepath when it is found.This came up while trying to use
tmux
ontal-dew
on an Android phone.tmux
tries to make a unix domain socket in/tmp
, a directory Android does not have (in version 2.3 which I tested on).The text was updated successfully, but these errors were encountered: