Git Product home page Git Product logo

Comments (3)

mpartel avatar mpartel commented on August 14, 2024 1

You are right, I hadn't considered this case (and it turns out the unsigned integer parsing function strtoul silently casts negative numbers instead of erroring 😒 )

Shouldn't be a difficult fix. I'll see if I can get it done today or tomorrow.

from bindfs.

mpartel avatar mpartel commented on August 14, 2024

Should be fixed now with 1.17.5.

Note that with uid-offset=-100000, operations on any source files with uid/gid below -100000 (e.g. owned by root) will fail with EIO. Is this acceptable in your case? If not, do you have a suggestion for how it should work (or be workaroundable)?

from bindfs.

mathiasaerts avatar mathiasaerts commented on August 14, 2024

Amazing, thanks! 🤩 First tests look very promising!

I don't think this would be an issue for my current use case. I'm wondering if as a workaround you could set lower uids / gids to 0, so all files with a uid below 100000 would become root in the mounted dir. I'm guessing this could be a problem to 'unapply' the offset though?

Instead of making the files root, it could also be nobody (uid/gid 65534), which is also how LXC handles files owned by a uid < 100000 on the host in an unprivileged container. In LXC, this allows files to be readonly in the container, so they cannot be modified or chowned. I guess you would have to handle each of those operations separately (if this is not already the case) to implement a similar approach?

from bindfs.

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.