Code Monkey home page Code Monkey logo

Comments (3)

elkoniu avatar elkoniu commented on June 26, 2024

@mvo5 I am wondering if this should be maybe more general test - dropping all caps for all stages and expect them to fail?

from osbuild.

supakeen avatar supakeen commented on June 26, 2024

I'd quite like if we can move to capabilities being required in stages and reducing the default set of capabilities given. I don't know if that's what you had in mind or if that makes the scope too large?

from osbuild.

mvo5 avatar mvo5 commented on June 26, 2024

I personally would start simple and just inspect tar initially, it seems to test if we need CAP_MAC_ADMIN here we would have to try something like this:

  1. ensure we run on both selinux and non-selinux system as they might behave differently. on a non-selinux system CAP_MAC_ADMIN should actually not be needed by tar because it's all just xattrs to them but on selinux enabled hosts this is different
  2. create a test dir with dirs/files with "unknown" (to the host) selinux attributes, i.e. not use something like etc_t but maybe randomz_t or something
  3. write a stage test to ensure the stage really runs under bwrap so that the cap handling happens
  4. check that there are no selinux denials and that the resulting tar archive has correct selinux attributes

I'm afraid it's a bit of work :/

from osbuild.

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.