-
Notifications
You must be signed in to change notification settings - Fork 710
local path disclosure #1611
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
Comments
Can you be more specific? We use |
|
I built everything with |
Apparently we use |
Perhaps the |
I removed the reference to One possible solution is to make cabal-install a library, but we don't want to do this right now. Another is to fix GHC. |
@accursoft note that you can specify the The right way to prepare something for deployment is:
Then you tar up the image directory and deploy that to the target machine. Directories under the prefix you specify will be included in the executable. I think the other aspects are covered by #462. |
It is hardcoded, but is not actually used anywhere. The cabal-install executable is relocatable in practice. |
@23Skidoo: By “anywhere”, do you mean the cabal-install source code, or also the GHC run-time? Could other executables be non-relocatable, without a specific reason in their source code? |
@mietek The former, but since these symbols come from the Cabal-generated
Only if an executable uses these paths in some way, e.g. if it accesses data files with |
When compiling cabal-install, the path to my ~/.cabal directory is hard-coded several times in the executable. Is it possible to avoid this?
My use case is a private server that's compiling cabal-install, then deploying it to less privileged servers which shouldn't know anything about the private server's file system.
The text was updated successfully, but these errors were encountered: