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

zeek-archiver: Respect umask setting #58

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

awelzel
Copy link
Contributor

@awelzel awelzel commented Aug 27, 2024

Rather than hard-coding 0700 and 0644, use 0775 and 0664 and assume and rely on open() and mkdir() to pick up the environment's umask value.

This may theoretically break someone relying on the strict permissions, but I'd argue it's not worth a configuration option. And pointing them at umask may be pragmatic enough.

Closes #57.

@awelzel awelzel changed the title zeek-archiver: Respect umask setting rather zeek-archiver: Respect umask setting Aug 27, 2024
@awelzel awelzel force-pushed the topic/awelzel/57-relax-mkdir-open-permissions branch from 4f8e652 to 2a247ee Compare August 27, 2024 12:58
Rather than hard-coding 0700 and 0644, use 0775 and 0664 and assume
and rely on open() and mkdir() to pick up the environment's umask
value.

This may break someone relying on the strict permissions, but I'd argue
it's not worth a configuration option. And pointing them at umask may
be pragmatic enough.

Closes #57.
@awelzel awelzel force-pushed the topic/awelzel/57-relax-mkdir-open-permissions branch from ce012f8 to 8e02215 Compare August 27, 2024 17:08
@awelzel awelzel merged commit e850412 into master Sep 3, 2024
18 checks passed
@awelzel awelzel deleted the topic/awelzel/57-relax-mkdir-open-permissions branch September 3, 2024 08:01
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.

Zeek-archiver is setting highly restrictive permissions on directories
2 participants