Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy Windows file metadata #188

Merged
merged 1 commit into from Dec 1, 2021

Conversation

gabriel-samfira
Copy link
Contributor

This change ensures that file ownership and Discretionary ACLs are properly preserved on Windows.

@dmcgowan dmcgowan added this to Needs Contributor Update in Code Review Nov 12, 2021
This change ensures that file ownership and ACLs are properly copied
on Windows.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
@jsturtevant
Copy link

xref: containerd/containerd#6235

// apply security info which includes SIDs not necessarily present on
// the host.
privileges := []string{winio.SeRestorePrivilege, seTakeOwnershipPrivilege}
if err := winio.EnableProcessPrivileges(privileges); err != nil {

Choose a reason for hiding this comment

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

@kzys kzys moved this from Needs Contributor Update to Ready For Review in Code Review Nov 30, 2021
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp requested a review from dmcgowan December 1, 2021 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants