Limit "whole-only" config families to "growing" and "every nvt" #1386
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What:
This brings gvmd in line with the interface change from greenbone/gsa#2222:
Why:
For certain LSC families GSA only allows selection of the entire family in configs. gvmd should match this
How did you test it:
GMP that should fail:
<modify_config config_id="49b2cb3b-79ea-4093-bee3-8bce68797484"><nvt_selection><family>CentOS Local Security Checks</family><nvt oid="1.3.6.1.4.1.25623.1.0.880021"/></nvt_selection></modify_config>
<modify_config config_id="dea76e26-0fca-4628-9476-af8e521a475c"><family_selection><growing>1</growing><family><name>Debian Local Security Checks</name><all>1</all></family></family_selection></modify_config>
<modify_config config_id="49b2cb3b-79ea-4093-bee3-8bce68797484"><nvt_selection><family>CentOS Local Security Checks</family><nvt oid="1.3.6.1.4.1.25623.1.0.880021"/></nvt_selection></modify_config>
GMP that should pass:
<modify_config config_id="dea76e26-0fca-4628-9476-af8e521a475c"><family_selection><growing>1</growing><family><name>Debian Local Security Checks</name><all>0</all></family></family_selection></modify_config>
<modify_config config_id="dea76e26-0fca-4628-9476-af8e521a475c"><nvt_selection><family>Port scanners</family><nvt oid="1.3.6.1.4.1.25623.1.0.14259"/></nvt_selection></modify_config>
Checklist: