Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Need helping finding some key areas of the source code (for sandboxing) #2789

Closed
wysisoft opened this issue Jun 21, 2020 · 6 comments
Closed

Comments

@wysisoft
Copy link

wysisoft commented Jun 21, 2020

  • Node.js Version:Latest release
  • OS:Ubuntu 20
  • Scope (install, code, runtime, meta, other?): Build
  • Module (and version) (if relevant):N/A

I would like help in finding 3 key areas of the Nodejs source code
1 - anywhere a file is written or read from the OS
2 - anywhere a network socket (or other networking item) is opened or closed
3 - anywhere a process is spawned / launched.

I can take it from there. Any help finding these .cc locations? I would like to try to remove these functionalities to better create a sandbox

@wysisoft wysisoft changed the title Need helping finding some key areas of the source code Need helping finding some key areas of the source code (for sandboxing) Jun 21, 2020
@addaleax
Copy link
Member

@wysisoft I think the best thing you can do is look through the list of libuv functions and then grep for those in Node.js core?

@wysisoft
Copy link
Author

Thank you for the excellent answer! I will try it out and see how it works. Am I the first to attempt something like this, or is there previous work I can borrow from?

@addaleax
Copy link
Member

@wysisoft I think the closest thing might be nodejs/node#33504 (and its predecessor nodejs/node#22112). Those operate at the C++ binding layer, instead of the libuv layer, though, so it’s a bit of a different approach with its own upsides and downsides

@PoojaDurgad
Copy link

@wysisoft - is this issue still outstanding? did @addaleax 's suggestion help you to resolve your issue?

@wysisoft
Copy link
Author

wysisoft commented Oct 18, 2020 via email

@PoojaDurgad
Copy link

closing the issue as it resolved.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants