Closed azubieta closed 4 years ago
Since this adds some overhead (I think) it should be made an optional feature.
Some overhead will be added, but I expect it to be quite insignificant. It will be an extra function call on file opening operations. There is no overhead on RW operations being those the more expensive. Me first call would be to keep the whole code together and perform tests. Then we can take a decision based on solid data.
To allow an application with fixed paths we must intercept all the system calls that take a file path as argument and rewrite. libunionfs
does this job quite well so we are going to copy this feature.
Two kind of overlay will be required:
Changes merge to master preparing 1.2 release
New feature: Path mappings support
APPRUN_PATH_MAPPINGS: /home/runner/work/Glimpse/Glimpse/glimpse-prefix/:usr/;
Very useful @azubieta. Will it be documented at https://github.com/AppImageCrafters/AppRun/blob/master/README.md?
Investigate https://github.com/project-portable/libunionpreload in order to port it's features into libapprun_hooks