Git Product home page Git Product logo

cap-add-demo's Introduction

cap-add-demo

This is a reproduction case for gitpod.io bug gitpod-io/gitpod#3721

This repo is pushed to hub.docker.com as randyfay/cap-add-demo

The key element is that this docker repo has setcap CAP_NET_BIND_SERVICE=+eip /bin/nc.traditional, which allows /bin/nc.traditional to access privileged ports (like port 80).

Build and push with docker buildx build --push --platform=linux/amd64,linux/arm64 -t randyfay/cap-add-demo .

To run it and see if nc.traditional has cap_net_bind_service, docker run -it randyfay/cap-add-demo getcap /bin/nc.traditional

Full steps to demonstrate loss of the cap_net_bind_service capacity on restore of an image in gitpod.io:

You should see "/bin/nc.traditional = cap_net_bind_service+eip", which means that the nc.traditional binary has the cap_net_bind_service capability.

You will not see the required output, in other words you will not see "/bin/nc.traditional = cap_net_bind_service+eip", because the cap_net_bind_service_capability has been lost.

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.