Skip to content

chroot: follow symlinks for the last component#114

Merged
rhatdan merged 1 commit intocontainers:masterfrom
giuseppe:chroot-solve-last-symlink
Sep 30, 2019
Merged

chroot: follow symlinks for the last component#114
rhatdan merged 1 commit intocontainers:masterfrom
giuseppe:chroot-solve-last-symlink

Conversation

@giuseppe
Copy link
Member

the current implementation of chroot_realpath skipped resolving
symlinks for the last path component. A malicious image could create
files on the host.

Closes: #111

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

the current implementation of chroot_realpath skipped resolving
symlinks for the last path component.  A malicious image could create
files on the host.

Closes: containers#111

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe giuseppe force-pushed the chroot-solve-last-symlink branch from 09f86a2 to 753b8ee Compare September 30, 2019 11:08
@rhatdan
Copy link
Member

rhatdan commented Sep 30, 2019

LGTM

@rhatdan rhatdan merged commit e93db0f into containers:master Sep 30, 2019
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.

crun follows symlinks when creating mount points

2 participants