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

Add Windows file ownership code #138

Merged

Conversation

gabriel-samfira
Copy link
Contributor

This change adds the ability to copy Windows file ownership and security information, as well as implement proper Chown() for Windows.

Signed-off-by: Gabriel Adrian Samfira [email protected]

@gabriel-samfira
Copy link
Contributor Author

gabriel-samfira commented Nov 8, 2022

Sorry about the previous omission. Tests should pass now.

Copy link
Owner

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Not a windows guy, but SGTM

@TBBle

}
var userSID *windows.SID
if err := windows.ConvertStringSidToSid(sidPtr, &userSID); err != nil {
return fmt.Errorf("converting to windows SID: %w", err)
Copy link
Owner

@tonistiigi tonistiigi Nov 8, 2022

Choose a reason for hiding this comment

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

Nit: use errors.Errorf so the stacktrace does not get lost.

Copy link
Owner

Choose a reason for hiding this comment

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

@gabriel-samfira Could you fix this small issue and rebase. I think we can merge this then.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Doing it ASAP.

Side note: will also have a new PR soon with fixes for windows across the rest of the repo and a workflow to test on windows.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@tonistiigi
Copy link
Owner

tonistiigi commented Nov 8, 2022

@gabriel-samfira Could you also look into setting up actual windows CI workflow for this repo?

@gabriel-samfira
Copy link
Contributor Author

@tonistiigi Sure! Will have a look this week.

@gabriel-samfira
Copy link
Contributor Author

@tonistiigi Added an issue to track the Windows CI workflow here #142

This change adds the ability to copy Windows file ownership and security
information, as well as implement proper Chown().

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
@tonistiigi tonistiigi merged commit 0127568 into tonistiigi:master Nov 14, 2022
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.

2 participants