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

Fix overly permissive file permissions in luigi/lock.py #3308

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

Ali-Razmjoo
Copy link
Contributor

Fixes #3303

Update file permissions in luigi/lock.py to be more restrictive.

  • Change the file permissions of the pid_dir directory from 0o777 to 0o700 in the acquire_for function.
  • Update the test cases test_acquiring_partially_taken_lock and test_acquiring_lock_from_missing_process in test/lock_test.py to check for the new file permissions 0o700.

Fixes spotify#3303

Update file permissions in `luigi/lock.py` to be more restrictive.

* Change the file permissions of the `pid_dir` directory from `0o777` to `0o700` in the `acquire_for` function.
* Update the test cases `test_acquiring_partially_taken_lock` and `test_acquiring_lock_from_missing_process` in `test/lock_test.py` to check for the new file permissions `0o700`.
@Ali-Razmjoo Ali-Razmjoo requested review from dlstadther and a team as code owners September 4, 2024 13:17
@dlstadther dlstadther merged commit 38dbd88 into spotify:master Sep 5, 2024
50 of 51 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.

Overly permissive file permissions in luigi/lock.py
2 participants