Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Userspace aliases should include all wrappers by default #12

Open
ZymoticB opened this issue Dec 12, 2013 · 1 comment
Open

Userspace aliases should include all wrappers by default #12

ZymoticB opened this issue Dec 12, 2013 · 1 comment

Comments

@ZymoticB
Copy link

Shouldn't need to specify, for example, that read is an alias of read (due to the symbol interposition done by pthread and likely others.). This is just a convenience thing.

The only issue here (which isn't deal with as well) is that the function wrapper calls out to whatever symbol the granary shared library is linked against. If an application is linking against a library which overrides some libc symbols then granary will see those symbols and will alias them but the wrapper will be calling out to the wrong symbol. Not sure how to resolve this part though!

@pgoodman
Copy link
Member

pgoodman commented Mar 1, 2014

I think this is partially dealt with based on how all aliases/detach points are resolved on a per-library basis on initialization (by scanning /proc/self/maps). This isn't solved for the general case (dlopen) though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants