Skip to content

Conversation

matthewhughes934
Copy link
Contributor

@matthewhughes934 matthewhughes934 commented Apr 29, 2025

The handling for sub_uid_open relies on commonio_open preserving errno, which it appears to make an effort do, but doesn't explicitly document.

Closes: #1253

@matthewhughes934 matthewhughes934 force-pushed the better-error-newuidmap-failure branch from da8a339 to 2a4c06e Compare April 29, 2025 18:38
@ikerexxe
Copy link
Collaborator

ikerexxe commented May 2, 2025

The code changes look good, but there are two things to improve. Can you change the Fixes in your commit message by Closes? That would be more appropriate to use.

On top of that, can you add another commit fixing newgidmap.c? The code changes should be the same, or very similar, to the ones you provided for newuidmap.c

The handling for `sub_uid_open` relies on `commonio_open` preserving
`errno`, which it appears to make an effort do, but doesn't explicitly
document.

Closes: shadow-maint#1253
Much like the previous commit, similarly relies on `sub_gid_open`
preserving `errno`.
@matthewhughes934 matthewhughes934 force-pushed the better-error-newuidmap-failure branch from 2a4c06e to ba0daae Compare May 2, 2025 10:53
@matthewhughes934
Copy link
Contributor Author

Thanks for the review

The code changes look good, but there are two things to improve. Can you change the Fixes in your commit message by Closes? That would be more appropriate to use.

Done: 5cc516b

On top of that, can you add another commit fixing newgidmap.c? The code changes should be the same, or very similar, to the ones you provided for newuidmap.c

Done: ba0daae

Copy link
Collaborator

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for the patches.

@ikerexxe ikerexxe merged commit ea109a3 into shadow-maint:master May 2, 2025
10 checks passed
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.

No error message from newuidmap on sub_uid_open failure
2 participants