spiegel_podman/pkg
rcmadhankumar bf7dcd5619 Fix: Remove appending rw as the default mount option
The backstory for this is that runc 1.2 (opencontainers/runc#3967)
fixed a long-standing bug in our mount flag handling (a bug that crun
still has). Before runc 1.2, when dealing with locked mount flags that
user namespaced containers cannot clear, trying to explicitly clearing
locked flags (like rw clearing MS_RDONLY) would silently ignore the rw
flag in most cases and would result in a read-only mount. This is
obviously not what the user expects.

What runc 1.2 did is that it made it so that passing clearing flags
like rw would always result in an attempt to clear the flag (which was
not the case before), and would (in all cases) explicitly return an
error if we try to clear locking flags. (This also let us finally fix a
bunch of other long-standing issues with locked mount flags causing
seemingly spurious errors).

The problem is that podman sets rw on all mounts by default (even if
the user doesn't specify anything). This is actually a no-op in
runc 1.1 and crun because of a bug in how clearing flags were handled
(rw is the absence of MS_RDONLY but until runc 1.2 we didn't correctly
track clearing flags like that, meaning that rw would literally be
handled as if it were not set at all by users) but in runc 1.2 leads to
unfortunate breakages and a subtle change in behaviour (before, a ro
mount being bind-mounted into a container would also be ro -- though
due to the above bug even setting rw explicitly would result in ro in
most cases -- but with runc 1.2 the mount will always be rw even if
the user didn't explicitly request it which most users would find
surprising). By the way, this "always set rw" behaviour is a departure
from Docker and it is not necesssary.

Signed-off-by: rcmadhankumar <madhankumar.chellamuthu@suse.com>
2025-04-23 17:18:03 +05:30
..
annotations update golangci-lint to 1.60.1 2024-08-19 11:41:28 +02:00
api update golangci-lint to v2.1.1 2025-04-14 19:33:42 +02:00
auth Update CI to run Windows unit tests 2025-03-16 13:40:16 +00:00
autoupdate Vendor c/common:8483ef6022b4 2024-08-30 16:13:54 +02:00
bindings pkg/bindings/containers: rm unused break 2025-04-15 14:55:53 -07:00
channel bump golangci-lint to v1.50.1 2022-12-15 13:39:56 +01:00
checkpoint Enable pod restore with crun 2024-10-21 17:37:20 +01:00
copy Fix windows path handling in podman cp 2025-04-08 15:23:08 -07:00
criu chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain Merge pull request #25755 from kolyshkin/unused2 2025-04-09 18:58:43 +00:00
emulation pkg/emulation: add linux build tag for elf 2025-04-02 13:35:14 -07:00
env update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
errorhandling ci: rm allow-unused from nolintlint settings 2025-03-31 12:27:55 -07:00
farm bump go to 1.22 2024-09-03 15:14:15 +02:00
fileserver Bump Go module to v5 2024-02-08 09:35:39 -05:00
inspect Bump Go module to v5 2024-02-08 09:35:39 -05:00
k8s.io ci: rm allow-unused from nolintlint settings 2025-03-31 12:27:55 -07:00
libartifact vendor: bump c/common to 9b0d134f392 2025-04-01 09:58:43 -07:00
lookup Cease using deprecated runc userlookup 2024-02-02 11:02:43 -05:00
machine Merge pull request #25701 from danegsta/danegsta/windowsCpPath 2025-04-10 16:53:23 +00:00
namespaces Apply De Morgan's law 2025-03-31 12:27:55 -07:00
parallel Bump Go module to v5 2024-02-08 09:35:39 -05:00
ps add filter for container command 2025-03-02 19:47:44 +02:00
rctl pkg/rctl: fix fprintf statement 2025-03-31 12:27:55 -07:00
rootless pkg/rootless: fix ST1005 warning for freebsd 2025-04-02 13:35:14 -07:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal refacto: unknown signal return signal number without prefix 2024-02-28 19:45:03 +01:00
specgen Merge pull request #25755 from kolyshkin/unused2 2025-04-09 18:58:43 +00:00
specgenutil Add support for pids-limit annotation for podman kube play. 2025-03-26 10:06:56 +01:00
specgenutilexternal Apply De Morgan's law 2025-03-31 12:27:55 -07:00
syncmap Add syncmap package and use it for graph stop/remove 2025-02-17 14:32:34 -05:00
systemd Merge pull request #25899 from ygalblum/quadlet-unit-deps 2025-04-16 21:03:52 +00:00
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
timetype Apply De Morgan's law 2025-03-31 12:27:55 -07:00
trust go1.23: use std maps package 2025-03-11 17:21:24 +01:00
util Fix: Remove appending rw as the default mount option 2025-04-23 17:18:03 +05:30