Skip to content

Copy Windows file metadata#188

Merged
dmcgowan merged 1 commit into
containerd:mainfrom
gabriel-samfira:copy-windows-acl
Dec 1, 2021
Merged

Copy Windows file metadata#188
dmcgowan merged 1 commit into
containerd:mainfrom
gabriel-samfira:copy-windows-acl

Conversation

@gabriel-samfira

Copy link
Copy Markdown
Contributor

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

Comment thread fs/copy_linux.go
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
Copy Markdown

xref: containerd/containerd#6235

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@estesp estesp 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

@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

None yet

Development

Successfully merging this pull request may close these issues.

5 participants