Git Product home page Git Product logo

Comments (5)

calvin2021y avatar calvin2021y commented on June 5, 2024

I guess need add

{
  "defaultAction": "SCMP_ACT_ALLOW",
  "syscalls": [
    {
      "names": ["sysinfo"],
      "action": "SCMP_ACT_NOTIFY",
      "args": []
    }
  ]
}

and implement seccomp_notify.c return fake results based on the container def.

from crun.

giuseppe avatar giuseppe commented on June 5, 2024

yes, you'd need to handle the intercepted syscall by yourself.

I am closing the issue since it is out of the scope for crun. There is no crun process that can intercept the syscall while the container runs.

from crun.

calvin2021y avatar calvin2021y commented on June 5, 2024

I find this code https://github.com/canonical/lxd/blob/main/lxd/seccomp/seccomp.go

please suggestion how to intercepted syscall with crun.

from crun.

rhatdan avatar rhatdan commented on June 5, 2024

crun only sets up the container and then exits. Conmon (container monitor) is the processes that continues running with the container. This potentially could be used, but probably only for rootful containers.

from crun.

giuseppe avatar giuseppe commented on June 5, 2024

it works also for rootless, but of course you are limited in what you can do since you can still only perform operations possible to the unprivileged user in the user namespace

from crun.

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.