Skip to content

fix(linux): enforce com.docker.network.bridge.enable_icc=false - #1000

Draft
Panahifarah wants to merge 157 commits into
libracoder:mainfrom
Panahifarah:fix/issue-213-linux-enable-icc
Draft

Panahifarah wants to merge 157 commits into
libracoder:mainfrom
Panahifarah:fix/issue-213-linux-enable-icc

Conversation

@Panahifarah

Copy link
Copy Markdown
Contributor

com.docker.network.bridge.enable_icc=false was accepted and shown in docker network inspect, but not enforced: containers on the network still reached each other (confirmed on main in #213).

What changed

  • Each container's host-side veth on such a network is made an isolated bridge port (IFLA_BRPORT_ISOLATED), in the same netlink request that creates it, both at start and on docker network connect. Isolated ports can't reach each other (IPv4, IPv6, ARP); the gateway, embedded DNS, published ports and egress still work. If isolation can't be applied, the attach fails.
  • The option is read as Docker reads it (Go's ParseBool); a value that is not a boolean is refused at docker network create instead of leaving traffic allowed.
  • Networks already created with enable_icc=false are enforced from their containers' next start.

How it was tested

  • Unit tests: option parsing and refusal (network.rs), the isolation message's layout (netlink.rs).
  • New tests/e2e.sh checks icc-off-no-peer, icc-off-connect-no-peer, icc-off-names, icc-off-bad-value, listed in tests/regressions.tsv. On a Linux host (Ubuntu 22.04, kernel 5.15) they fail on main and pass with this change; also passing on Ubuntu 24.04 (kernel 6.8), where the full suite shows no new failures against main.
  • Not yet run on macOS or Windows.

Refs #213 (item 3; --cgroup-parent and userns remap stay open)

libracoder and others added 30 commits November 23, 2026 12:15
…lied (libracoder#378)

Co-authored-by: sundarshahi <shahithakurisundar@gmail.com>
…sting cannot drop the VM (libracoder#463)

Co-authored-by: Đoàn Phương Nam <120766900+DPhngNam@users.noreply.github.com>
Co-authored-by: Jonnyan404 <jonnyan404@users.noreply.github.com>
…ebus-emulator unpacks (libracoder#618)

Co-authored-by: Masih Moloodian <masihmoloodian@gmail.com>
…ocker does (libracoder#594)

Co-authored-by: Randy Fay <randy@randyfay.com>
…ces (libracoder#420)

Co-authored-by: Urdemonlord <hasrinata@gmail.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
Co-authored-by: Chukwuebuka (Gaus Octavio) <56232734+Chukwuebuka-2003@users.noreply.github.com>
… and two build notes (libracoder#361)

Co-authored-by: Alex Alvord <325058966+cloudlabworks@users.noreply.github.com>
… blank (libracoder#587)

Co-authored-by: Antony Nyagah <tony.m.nyagah@gmail.com>
…tworks, as Docker does (libracoder#727)

Co-authored-by: Anmol Sharma <anmol2512s@gmail.com>
… recreate keeps its volumes (libracoder#610)

Co-authored-by: Elyter <eliottbreg@gmail.com>
…hand over on disconnect (libracoder#381)

Co-authored-by: Supersynergy <true@supersynergy.de>
… runs in a user namespace (libracoder#597)

Co-authored-by: Randy Fay <randy@randyfay.com>
…pplied, as on Docker (libracoder#523)

Co-authored-by: Nguyễn Đức <nguyenminhduc230903@gmail.com>
… runs (libracoder#669)

Co-authored-by: Urdemonlord <hasrinata@gmail.com>
…ts (libracoder#537)

Co-authored-by: grvwy <147989282+grvwy@users.noreply.github.com>
… requested stops (libracoder#474)

Co-authored-by: meutex <342316034+meutex@users.noreply.github.com>
…eouts (libracoder#715)

Co-authored-by: Chukwuebuka (Gaus Octavio) <56232734+Chukwuebuka-2003@users.noreply.github.com>
libracoder and others added 27 commits November 25, 2026 20:47
…on odd input (libracoder#965)

Co-authored-by: Ersin KOÇ <ersinkoc@gmail.com>
…ger ulimits (libracoder#966)

Co-authored-by: Ersin KOÇ <ersinkoc@gmail.com>
…, resolve cifs addr= (libracoder#967)

Co-authored-by: Ersin KOÇ <ersinkoc@gmail.com>
)

Co-authored-by: Hakan K. <vorlaxenlabs@gmail.com>
… menu & Linux speed (libracoder#776)

Fixes macOS VM disk reclaim accounting for ext4 static metadata overhead, shares the numbered log console component with Kubernetes Pod logs, strips native AppKit WKWebView menus on macOS, optimizes Linux container creation/startup hot paths, and adds the head-to-head Kiri vs Docker Linux benchmark workflow (Closes libracoder#776).
…. on the drive (libracoder#972)

Co-authored-by: Ersin KOÇ <ersinkoc@gmail.com>
…ain wsl.exe pipes, keep one [boot] command (libracoder#973)

Co-authored-by: Ersin KOÇ <ersinkoc@gmail.com>
… and keep watch events intact (libracoder#974)

Co-authored-by: Ersin KOÇ <ersinkoc@gmail.com>
Co-authored-by: Cesar Roberto Pamplona Filho <cesarpamplonafilho@gmail.com>
Co-authored-by: Victor Borja <vborja@apache.org>
…ain-thread/worker stalls, and persist Windows VHDX overhead
…libracoder#975)

A `kiri machine` keeps its work in its container's writable layer, so a
routine `docker system prune` with the machine stopped deleted it and
everything in it. container_prune now leaves containers labelled
dev.kiri.machine out, as OrbStack's prunes leave its machines alone;
`kiri machine delete` and `docker rm machine-NAME` still remove one.
The window's prune goes through the same endpoint.

Unit test in daemon/ops.rs, e2e check machine-prune-keeps, listed in
tests/regressions.tsv; docs/features.md says prunes keep machines.
…bracoder#568, libracoder#538)

Kiri's window, menus and Windows setup now come in Uzbek (Oʻzbekcha, in
standard official Uzbek Latin) and Nepali (नेपाली), bringing Kiri to 40
languages (39 translation files, 2,037 keys each).

- lang/uz.json: all 2,037 keys in official Uzbek Latin (Oʻ/oʻ, Gʻ/gʻ with
  U+02BB, tutuq belgisi U+02BC, Sh/sh, Ch/ch).
- lang/ne.json: all 2,037 keys in everyday Nepali developer register,
  with Noto Sans Devanagari first in index.html and Nirmala UI in setup.html.
- lang.rs & langstep.js: uz (uz, uz-UZ, uz-Latn-UZ, uz_UZ) and ne (ne,
  ne-NP, ne_NP) resolution, native names, greetings and Uzbek search aliases.
- UI tests & README: updated for 40 languages.

Co-authored-by: Behruz Bahodirov <bbahodirov.dev@gmail.com>
Co-authored-by: sundarshahi <shahithakurisundar@gmail.com>
… and hide off/paused local domains (libracoder#386, libracoder#401)

- lang/hy.json & lang/az.json: add Armenian (Հայերեն, libracoder#386) and Azerbaijani
  (Azərbaycanca, libracoder#401) at 100% key parity (2,038 keys across 41 translation
  files), tightening verbose Azerbaijani labels so narrow cards and tabs fit.
- lang.rs, langstep.js, index.html, setup.html: register hy (hy, hy-AM, hy_AM)
  and az (az, az-AZ, az-Latn-AZ, az_AZ), Armenian font fallbacks (Noto Sans
  Armenian, Mshtakan, Sylfaen), and Latin search aliases (azeri, azerbaycanca,
  hayeren).
- Settings → About: add Community row (Discord + @runkiri on X) with .soc-i
  icons and idiomatic 'Community' translations across all 41 language files.
- Domains: return empty string from localUrl() when the active router reports
  running: false or serving: false so dead .kiri.local/.kiri.localhost links
  are hidden while published host ports remain clickable.

Co-authored-by: Shahen Hovhannisyan <shahen.hovhannisyan.94@gmail.com>
Co-authored-by: Míng hàn <mahirmehtizade@outlook.com>
…libracoder#989), and add kiri engine (libracoder#983) (libracoder#996)

* Start: evict stale VmLink::layers cache and re-send missing unpacked layers

* Engine & CLI: fix macOS k8s idle CPU (libracoder#989) and add kiri engine commands (libracoder#983)
com.docker.network.bridge.enable_icc=false was accepted and shown in
inspect but never applied, so containers on the network still reached
each other. Each container's host-side veth on such a network is now an
isolated bridge port (IFLA_BRPORT_ISOLATED), set in the same netlink
request that creates it, at start and on network connect. The gateway,
embedded DNS, published ports and egress keep working. A value that is
not a boolean is refused at network create, as Docker does.

Refs libracoder#213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants