Skip to content

[release/2.4] cri: should not follow log file - #14302

Merged
samuelkarp merged 1 commit into
containerd:release/2.4from
k8s-infra-cherrypick-robot:cherry-pick-14293-to-release/2.4
Oct 6, 2026
Merged

samuelkarp merged 1 commit into
containerd:release/2.4from
k8s-infra-cherrypick-robot:cherry-pick-14293-to-release/2.4

Conversation

@k8s-infra-cherrypick-robot

@k8s-infra-cherrypick-robot k8s-infra-cherrypick-robot commented Oct 6, 2026 •

Copy link
Copy Markdown

This is an automated cherry-pick of #14293

/assign samuelkarp

Apply hardening to not follow symlinks for container log files

Test it in local kubernetes cluster and it passes.

```yaml
apiVersion: v1
kind: Pod
metadata:
  name: reopen-log-test
  labels:
    app: reopen-log-test
spec:
  restartPolicy: Never
  terminationGracePeriodSeconds: 0
  containers:
    - name: logger
      image: busybox:1.36
      imagePullPolicy: IfNotPresent
      command:
        - /bin/sh
        - -c
        - |
          while true; do
            dd if=/dev/zero bs=1024 count=1024 2>/dev/null | tr '\000' x
            printf '\n'
            sleep 0.5
          done
```

Signed-off-by: Wei Fu <[email protected]>

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@samuelkarp
samuelkarp merged commit aec85b3 into containerd:release/2.4 Oct 6, 2026
55 checks passed
@samuelkarp samuelkarp added impact/changelog area/cri Container Runtime Interface (CRI) labels Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) impact/changelog size/M

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants