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

NAS-129054 / 24.10 / Fix permissions on files under data directory #13792

Merged
merged 1 commit into from
May 31, 2024

Conversation

Qubad786
Copy link
Contributor

Problem

The test_data_dir_perms of the early_settings integration test was failing because some files, including user-services.json, truenas-eula-pending, and dhparam.pem, do not have 0o600 permissions when created by middlewared.

Solution

Specify the permissions of these files to be 0o600 when they are created by middlewared.

P.S permission for dhparam are not fixed as they should be handled in another PR we have open

@Qubad786 Qubad786 requested a review from a team May 23, 2024 20:08
@bugclerk bugclerk changed the title Fix permissions on files under data directory NAS-129054 / 24.10 / Fix permissions on files under data directory May 23, 2024
@bugclerk
Copy link
Contributor

src/middlewared/middlewared/etc_files/systemd.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/plugins/truenas.py Outdated Show resolved Hide resolved
@Qubad786 Qubad786 requested review from yocalebo and anodos325 and removed request for anodos325 and yocalebo May 24, 2024 12:34
@Qubad786 Qubad786 merged commit 82711da into master May 31, 2024
3 checks passed
@Qubad786 Qubad786 deleted the NAS-129054 branch May 31, 2024 16:23
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants