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: gvm_hosts_allowed_only() #771

Merged
merged 1 commit into from
May 15, 2023
Merged

Add: gvm_hosts_allowed_only() #771

merged 1 commit into from
May 15, 2023

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented May 11, 2023

What

Add: gvm_hosts_allowed_only()
Jira: SC-837
Used in: greenbone/openvas-scanner#1420

Why

This function removes denied hosts and kept the allowed hosts from the hosts list.

For backward compatibility, a pre-procesor directive defines a flag which enabled this feature.

References

Checklist

  • Tests

@jjnicola jjnicola requested a review from a team May 11, 2023 10:22
jjnicola added a commit to greenbone/openvas-scanner that referenced this pull request May 11, 2023
This PR fix an issue which produces the scan to be interrupted, because the denied hosts are not removed from the hosts list, and the final host count doesn't match with the amount of alive hosts. This ends with an interrupted scan produced by a wrong scan progress calculation.

These fix depends on PR greenbone/gvm-libs#771. However, it is not a breaking change, since a pre-processor directive check for a flag. Without an updated gvm-libs behaves as before and uses the feature (the fix) if enabled.

Jira SC-837
@jjnicola jjnicola enabled auto-merge (squash) May 11, 2023 10:33
@jjnicola jjnicola force-pushed the deny-hosts branch 2 times, most recently from 5f11a63 to 4814444 Compare May 11, 2023 11:25
jjnicola added a commit to greenbone/openvas-scanner that referenced this pull request May 11, 2023
This PR fix an issue which produces the scan to be interrupted, because the denied hosts are not removed from the hosts list, and the final host count doesn't match with the amount of alive hosts. This ends with an interrupted scan produced by a wrong scan progress calculation.

These fix depends on PR greenbone/gvm-libs#771. However, it is not a breaking change, since a pre-processor directive check for a flag. Without an updated gvm-libs behaves as before and uses the feature (the fix) if enabled.

Jira SC-837
This function removes denied hosts and kept the allowed hosts from the hosts list.

For backward compatibility, a preprocesor directive defines a flag which enabled this feature.
@jjnicola jjnicola merged commit c168b88 into main May 15, 2023
@jjnicola jjnicola deleted the deny-hosts branch May 15, 2023 08:33
jjnicola added a commit to greenbone/openvas-scanner that referenced this pull request May 15, 2023
This PR fix an issue which produces the scan to be interrupted, because the denied hosts are not removed from the hosts list, and the final host count doesn't match with the amount of alive hosts. This ends with an interrupted scan produced by a wrong scan progress calculation.

These fix depends on PR greenbone/gvm-libs#771. However, it is not a breaking change, since a pre-processor directive check for a flag. Without an updated gvm-libs behaves as before and uses the feature (the fix) if enabled.

Jira SC-837
Kraemii pushed a commit to greenbone/openvas-scanner that referenced this pull request May 23, 2023
This PR fix an issue which produces the scan to be interrupted, because the denied hosts are not removed from the hosts list, and the final host count doesn't match with the amount of alive hosts. This ends with an interrupted scan produced by a wrong scan progress calculation.

These fix depends on PR greenbone/gvm-libs#771. However, it is not a breaking change, since a pre-processor directive check for a flag. Without an updated gvm-libs behaves as before and uses the feature (the fix) if enabled.

Jira SC-837
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants