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

Improvement: sync files and sockets on attach #1072

Open
jrcheli opened this issue Aug 10, 2022 · 0 comments
Open

Improvement: sync files and sockets on attach #1072

jrcheli opened this issue Aug 10, 2022 · 0 comments

Comments

@jrcheli
Copy link
Contributor

jrcheli commented Aug 10, 2022

When we inject into a process, we'll start observing all files and sockets that are opened after our library has been loaded. So at the current time, it's a reason that injection is not as good as being preloaded from the moment a process has started. Saying the same thing another way... after injection, our library isn't currently aware of files and sockets that were opened before we were injected.

If we end up doing more injection, (cough #1027) I think we should improve this. How? I'm not picky, but one way would be to wade through /proc/self/fd and tease out what sockets and files are open, and update the internal g_fsinfo and g_netinfo structures accordingly, perhaps adding network addresses and file names to these g_ structures as appropriate.

@jrcheli jrcheli changed the title Improvement: sync file and sockets on attach Improvement: sync files and sockets on attach Aug 10, 2022
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