Skip to content

Ubuntu 24.04: no network by default #1

Description

@sebalix

Problem

While /etc is shared with the sandbox, on Ubuntu 24.04 using systemd the /etc/resolv.conf is a symlink to /run/systemd/resolve/stub-resolv.conf, which is not bind mounted in the sandbox resulting with no network access.

Proposed solution

I added this config entry to make it work:

# Network access
EXTRA_RO_BINDS+=( "/run/systemd/resolve" )

Alternatives considered

Should it be added dynamically by ai-bwrap as soon as $SHARE_NET is true and /run/systemd/resolve exists on the host?

Great wrapper BTW! Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions