Giter Club home page Giter Club logo

Comments (7)

ayushr2 avatar ayushr2 commented on June 22, 2024 1

Again, thanks for the detailed bug report and doing a lot of the debugging on our behalf. I am sending a fix.

from gvisor.

EtiennePerot avatar EtiennePerot commented on June 22, 2024

Small note: systemd itself, even if it were installed successfully, would probably not run in gVisor. Last time this was attempted, gVisor was still missing the implementation of some syscalls and functionality (cgroups perhaps?) to make it work properly.

from gvisor.

thundergolfer avatar thundergolfer commented on June 22, 2024

@EtiennePerot thanks for the reply. I'm not too surprised to be honest. The install of systemd was actually resulting from apt-get install npm, and it's possible that npm would work correctly if the systemd dep succeeded.

from gvisor.

ayushr2 avatar ayushr2 commented on June 22, 2024

Hmm, open(2) says:

       O_PATH (since Linux 2.6.39)
              Obtain a file descriptor that can be used for two
              purposes: to indicate a location in the filesystem tree
              and to perform operations that act purely at the file
              descriptor level.  The file itself is not opened, and
              other file operations (e.g., read(2), write(2), fchmod(2),
              fchown(2), fgetxattr(2), ioctl(2), mmap(2)) fail with the
              error EBADF.

But it seems like O_PATH FD is allowed to make fchown(2) with AT_EMPTY_PATH?

from gvisor.

thundergolfer avatar thundergolfer commented on June 22, 2024

O_PATH FD is allowed to make fchown(2) with AT_EMPTY_PATH?

Yes that's my interpretation of the open(2) and fchownat(2) docs.

AT_EMPTY_PATH (since Linux 2.6.39)
              If  pathname is an empty string, operate on the file referred to
              by dirfd (which may have been obtained using the [open(2)](http://man.he.net/man2/open)  O_PATH
              flag).
              ....

from gvisor.

ayushr2 avatar ayushr2 commented on June 22, 2024

#9468 should be the right fix.

from gvisor.

thundergolfer avatar thundergolfer commented on June 22, 2024

Nice one!

from gvisor.

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.