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

Wrong bin path with chroot inside overlayfs #109

Closed
adsr opened this issue May 12, 2020 · 1 comment
Closed

Wrong bin path with chroot inside overlayfs #109

adsr opened this issue May 12, 2020 · 1 comment

Comments

@adsr
Copy link
Owner

adsr commented May 12, 2020

From overlayfs.txt:

Symlinks in /proc/PID/ and /proc/PID/fd which point to a non-directory
object in overlayfs will not contain valid absolute paths, only
relative paths leading up to the filesystem's root. This will be
fixed in the future.

For now, as @sj-i suggested, fallback on reading /proc/<pid>/exe. This will not work for mod_php or other embedded SAPIs.

@adsr
Copy link
Owner Author

adsr commented May 12, 2020

@akademic feel free to reopen if f14b2d6 does not work for your case. As @sj-i noted it will not work with mod_php, but should work for cli and php-fpm. I added a note to the readme about that bug.

@adsr adsr closed this as completed May 12, 2020
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