GithubHelp home page GithubHelp logo

Comments (6)

j1nx avatar j1nx commented on June 17, 2024 1

I might chime in on this one as soon as I figured out my own runc/docker/containerd/apparmor issues.

from ovos-docker.

j1nx avatar j1nx commented on June 17, 2024 1

Not yet back on the apparmor fight, however should be soon / somewhere is week.

from ovos-docker.

j1nx avatar j1nx commented on June 17, 2024 1

Quick update.

Finally am able to run the containers using podman rootless installation. Currently both SElinux and AppArmor are not yet enabled. Have some other things to tweak/create/fix to get everything running within the architecture that I have in mind. After that when everything works as expected, I will revisit the podman install and enable AppArmor.

from ovos-docker.

goldyfruit avatar goldyfruit commented on June 17, 2024

@j1nx, since your are using these images with buildroot, have you been able to dig a bit more on AppArmor?

from ovos-docker.

goldyfruit avatar goldyfruit commented on June 17, 2024

Did some research on AppArmor and Docker and basically there is almost nothing to do from a container perspective.

The main requirement is to enable AppArmor in the kernel by adding apparmor=1 security=apparmor to the kernel command line.

Once rebooted, Docker will automatically load the docker-default profile.

$ docker system info -f json | jq .SecurityOptions -r
[
  "name=apparmor",
  "name=seccomp,profile=builtin",
  "name=cgroupns"
]

Running aa-status will confirmed that containers are running in enforce mode.

goldyfruit@rpi3b:~ $ sudo aa-status
apparmor module is loaded.
32 profiles are loaded.
11 profiles are in enforce mode.
...
   docker-default
...
20 processes are in enforce mode.
   /usr/bin/bash (1286) docker-default
   /usr/bin/sleep (1294) docker-default
   /usr/bin/python3.11 (1295) docker-default
   /usr/bin/python3.11 (1297) docker-default
   /usr/bin/python3.11 (1370) docker-default
   /usr/bin/bash (1415) docker-default
   /usr/bin/python3.11 (1416) docker-default
   /usr/bin/bash (1457) docker-default
   /usr/bin/python3.11 (1502) docker-default
   /usr/bin/python3.11 (1530) docker-default
   /usr/bin/bash (1612) docker-default
   /usr/bin/python3.11 (1622) docker-default
   /usr/bin/python3.11 (1698) docker-default
   /bin/node_exporter (1736) docker-default
   /usr/bin/python3.11 (1887) docker-default
   /usr/bin/python3.11 (1909) docker-default
   /usr/bin/python3.11 (1925) docker-default
   /usr/bin/python3.11 (1931) docker-default
   /usr/bin/python3.11 (2329) docker-default
   /usr/bin/python3.11 (2346) docker-default
...

Up to us to add an ovos profile for AppArmor if required but for now I don't think it's.

Feel free to re-open it.

from ovos-docker.

j1nx avatar j1nx commented on June 17, 2024

That looks about where I left off indeed.

docker might bring some additional security however I agree with you that it has nothing to do with the ovos-docker containers itself.

from ovos-docker.

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.