Skip to content

Conversation

@elezar
Copy link
Member

@elezar elezar commented Nov 3, 2025

This change switches to using standard library functions for creating files in specified root folders. This removes the direct dependency on github.com/cyphar/filepath-securejoin and simplifies how libcontainer utilites are consumed.

This should unblock (or make redundant) the following PRs:

@elezar elezar force-pushed the use-os-root branch 2 times, most recently from 7754866 to 599ab62 Compare November 3, 2025 14:55
@elezar elezar added this to the next-minor milestone Nov 3, 2025
@elezar elezar modified the milestones: next-minor, v1.18.1 Nov 12, 2025
@elezar
Copy link
Member Author

elezar commented Nov 12, 2025

/cherry-pick release-1.18

@elezar elezar marked this pull request as ready for review November 12, 2025 10:25
Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

LGTM

os.Root is a new type that allows you to perform file operations, such as opening files, within a specific directory. This enhances security by restricting filesystem access to only that directory.

Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

Re-approve after new changes

Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

Commit was updated

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar merged commit b28c301 into NVIDIA:main Nov 12, 2025
13 checks passed
@elezar elezar deleted the use-os-root branch November 12, 2025 21:50
@github-actions
Copy link

🤖 Backport PR created for release-1.18: #1450 ⚠️ (has conflicts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants