You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/sys mounted as read-write despite requesting read-only (regression in 1.29) #2178
Comparing crun 1.28 and 1.29 with the same OCI bundle, I'm seeing /sys
mounted read-write on 1.29 even though the spec's /sys mount
(type: sysfs) requests "ro". 1.28 honours the ro request as expected.
It reproduces when the container has a user namespace but no network
namespace, and the spec also mounts /sys/fs/cgroup.
$ ./repro.sh
crun 1.28 /sys = ro,nosuid,nodev,noexec,relatime OK
crun 1.29 /sys = rw,nosuid,nodev,noexec,relatime BUG: config.json asked for "ro"
config.json asks for /sys read-only; 1.29 mounts it writable.
Trigger
Three conditions, all required:
a user namespace,
no network namespace — such a userns cannot create a fresh sysfs, so mount("sysfs", ...) fails with EPERM and crun falls back to bind-mounting
the host /sys, and
Activity
linux: fix /sys losing its read-only mount in the userns sysfs fallback
linux: fix /sys losing its read-only mount in the userns sysfs fallback
linux: fix /sys losing its read-only mount in the userns sysfs fallba…
linux: fix /sys ro mount in the userns sysfs fallback
linux: fix /sys ro mount in the userns sysfs fallback
dmytrobe commentedon Aug 13, 2026
@giuseppe Thank you so much for fixing regressions so quickly!