Git Product home page Git Product logo

sysbox-fs's Introduction

Sysbox-fs

The Sysbox file-system (Sysbox-fs) is one of the three active components of the Sysbox runtime, along Sysbox-mgr and Sysbox-runc.

Sysbox-fs provides file-system emulation capabilities to offer a more complete and secure "virtual-host" abstraction to the processes running inside Sysbox containers.

Main Features

As of today, Sysbox-fs supports the (partial) emulation of the following components:

  • procfs & sysfs emulation: The goal here is to expose and emulate resources that are not yet namespaced by the Linux kernel, or that are only reachable within the initial user-namespace.

    Sysbox-fs achieves this by mounting a FUSE file-system over specific sections of the /proc and /sys virtual file-systems, so that I/O requests targeting those resources are handled by Sysbox-fs in user-space.

  • Syscall emulation: Sysbox-fs traps and emulate a small set of syscalls inside a system container. The main purpose here is to provide processes inside the system container with a more complete and consistent view of the resources that are reachable within a system container. We rely on the Linux kernel's seccomp BPF features to achieve this.

    For example, inside a system container we trap the mount system call in order to ensure that such mounts always result in the Sysbox-fs' emulated procfs being mounted, rather than the kernel's procfs.

    Another example is the umount syscall, which we trap to ensure that Sysbox-fs' emulated components cannot be unmounted to expose the kernel's version of the corresponding FS node.

Build & Usage

Sysbox-fs is built through the Makefile targets exposed in the Sysbox repository. Refer to its README file for details.

Testing

Sysbox-fs' repository incorporates unit-tests to verify the basic operation of its main packages. You can manually execute these unit-tests through the usual go test ./... instruction.

For a more thorough verification of Sysbox-fs features, refer to the integration-testsuites hosted in the Sysbox repository and executed as part of the testing Makefile targets (e.g. make test).

sysbox-fs's People

Contributors

rodnymolina avatar ctalledo avatar abalmos avatar nudgegoonies avatar scop avatar

Stargazers

Roman avatar

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.