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

Add RW permission to the group on the feed lock file. #300

Merged
merged 1 commit into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Host progress is stored as integer. [#256](https://github.com/greenbone/ospd-openvas/pull/256)
- Use flock for the feed lock file. [#257](https://github.com/greenbone/ospd-openvas/pull/257)
- Improvements for fetching results from redis. [#282](https://github.com/greenbone/ospd-openvas/pull/282)
- Add RW permission to the group on the feed lock file. [#300](https://github.com/greenbone/ospd-openvas/pull/300)

### Fixed
- Check vt_aux for None before trying to access it. [#177](https://github.com/greenbone/ospd-openvas/pull/177)
Expand Down
1 change: 1 addition & 0 deletions ospd_openvas/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def _acquire_lock(self) -> "LockFile":
parent_dir.mkdir(parents=True, exist_ok=True)

self._fd = self._lock_file_path.open('w')
self._lock_file_path.chmod(0o660)
except Exception as e: # pylint: disable=broad-except
logger.error(
"Failed to create lock file %s. %s",
Expand Down