Skip to content

Fixed chown of root owned files escaping the jenkins home - #2433

Merged
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:chown-no-dereference-build-host
Aug 14, 2026
Merged

Fixed chown of root owned files escaping the jenkins home#2433
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:chown-no-dereference-build-host

Conversation

@larsewi

@larsewi larsewi commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Commit 6a8e329 caused chown to follow symlinks. The build machine runs
tests from testmachine-chroot containing symlinks to root owned binaries
like sudo. This caused sudo among other binaries to be owned by jenkins.

Fixed this by telling chown to operate directly on symlinks (not follow
them). And by telling find to skip the testmachine-chroot directory.

Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech

Commit 6a8e329 caused chown to follow symlinks. The build machine runs
tests from testmachine-chroot containing symlinks to root owned binaries
like sudo. This caused sudo among other binaries to be owned by jenkins.

Fixed this by telling chown to operate directly on symlinks (not follow
them). And by telling find to skip the testmachine-chroot directory.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi

larsewi commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi
larsewi merged commit c7e9ebc into cfengine:master Aug 14, 2026
9 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants