Git Product home page Git Product logo

Comments (2)

thehajime avatar thehajime commented on September 28, 2024

there are a couple of use cases.

  • if an application opens a socket but also open a file (like stdin and stdout), the lib should distinguish and dispatch them
  • if liblkl{.a,.so} (or linked library) uses system calls and linked with libhijack, then libhijack should treat those system calls goes to the host calls. virtio network backend (currently only with tap) required such a behavior
    • the tap case is easy to mitigate as the code is just a couple of lines, but if we depend on an external library (I'm thinking dpdk in my mind), it would be more complicated

so notifying something to callers is not always happy for users.

I would say if applications need to only use LKL syscalls, the hijack library is not for them: call LKL syscall directly.

see more detail discussion in the Section "3.13.6 System Call Hijacking" of rumpkernel book (https://github.com/rumpkernel/book).

I understand handling host fds in hijack library is broken and I haven't come up with a perfect solution. and I'm so reluctant to spend more time for hijack library (because of such limitations).
but the library is only there because of the instant use case to benefit LKL with existing application binaries.

from linux.

pscollins avatar pscollins commented on September 28, 2024

Got it, very helpful explanation, thanks!

from linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.