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

server: Fix umask setting when --group is specified #478

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

ueno
Copy link
Member

@ueno ueno commented Mar 28, 2023

p11-kit server previously set umask(066) unconditionally before chown and that resulted in removing group read/write bits, even if --group is specified. This fixes the logic to respect --group and also allows it to be specified without --user.

Originally reported in:
https://lists.freedesktop.org/archives/p11-glue/2023-January/000725.html

@coveralls
Copy link

coveralls commented Mar 28, 2023

Coverage Status

Coverage: 70.537% (+0.0008%) from 70.537% when pulling d6518ee on ueno:wip/dueno/server-umask into 66e8c9e on p11-glue:master.

p11-kit server previously set umask(066) unconditionally before chown
and that resulted in removing group read/write bits, even if --group
is specified.  This fixes the logic to respect --group and also allows
it to be specified without --user.

Originally reported in:
https://lists.freedesktop.org/archives/p11-glue/2023-January/000725.html

Signed-off-by: Daiki Ueno <[email protected]>
@ueno ueno force-pushed the wip/dueno/server-umask branch from 979e48b to d6518ee Compare March 28, 2023 23:35
@ueno ueno merged commit 8b98b0d into p11-glue:master Mar 28, 2023
@ueno
Copy link
Member Author

ueno commented Mar 28, 2023

I'm filing this on behalf of the original submitter, and the change looks good; merging without approval.

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.

3 participants