Coder Social home page Coder Social logo

Access control in Assise about assise HOT 2 OPEN

ut-osa avatar ut-osa commented on July 20, 2024
Access control in Assise

from assise.

Comments (2)

simpeter avatar simpeter commented on July 20, 2024

from assise.

wreda avatar wreda commented on July 20, 2024

acquire_lease is commented out in namex, which is presumably where Assise goes to acquire leases.
Is this supposed to be left commented out?
If so, where does LibFS guide POSIX calls to acquire read/write leases?

Write leases are acquired at src/filesystem/file.c in 'mlfs_object_create()'. The lines you found are specifically for read leases, and are commented temporarily. They will be re-enabled in the future once I get a chance to properly test them.

How can we run libfs as a non-privileged user?
For example, running ./run.sh iotest sw 2G 4K 1 (no sudo) yields the following error. It looks like something in the shim requires extra privileges.
Would it be okay to spoof LibFS owners / groups in our tests, if this is something we can't avoid?

The permissions issue you're encountering is indeed related to the shm files, which are created at this line. One quick workaround is to change the permissions of these files manually. On ubuntu, running sudo chmod 777 /dev/shm/shm_* should do the trick. I'll see if I can introduce a proper patch for this in the future.

When running the lease test, e.g. sudo ./run.sh lease_test c 1 1, we cannot run the test as we get an error, for example: incorrect fd -2: file /mlfs/fileset/f0_7618.
Other tests, like many_files_test, work fine.
We see similar errors when running sudo ./run_lease_test_example.sh in the output logs. What can we do to solve this?

I have pushed a hotfix for the 'lease_test' benchmark. It should run to completion now.

from assise.

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.