• azdle@news.idlestate.org
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    2
    ·
    edit-2
    8 months ago

    Defense in depth. If something escapes the container it’s limited to only what’s under that user and not the whole system. Having access to the whole system makes it easier for malware to hide/persist itself.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      7
      ·
      8 months ago

      Correct me if I’m wrong but containerization is enforced by the kernel, correct? If something escapes you’re pretty much screwed anyway.

      • Atemu@lemmy.ml
        link
        fedilink
        English
        arrow-up
        13
        ·
        8 months ago

        There are many layers involved in preventing escapes from containers.

      • Sethayy@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        Way too dependent on the setup, a container with absolutely no outside access theoretically just has the kernel, but usually we want to communicate with our docker images not just run them