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

Remove source iface preferences #730

Merged
merged 5 commits into from
May 12, 2021

Conversation

ArnoStiefvater
Copy link
Member

@ArnoStiefvater ArnoStiefvater commented May 10, 2021

What:

Remove source iface preferences.
source_iface preferences can still be set for nasl standalone for development purposes.

Why:

Remove rarely used option.

How:

Add options sys_ifaces_allow and sys_ifaces_deny to the openvas conf file and start a small scan via gvm-cli with options:

        <scanner_params>\
            <source_iface>enp0s8</source_iface>\
            <ifaces_deny>enp0s8</ifaces_deny>\
            <ifaces_allow>foo</ifaces_allow>\
        </scanner_params>\

In the results the following error result will appear: The following provided settings are deprecated since the 21.10 release and will be ignored: source_iface (task setting) ifaces_ allow (user setting) ifaces_deny (user setting) sys_ifaces_allow (scanner only setting)sys_ifaces_deny (scanner only setting)

Checklist:

@ArnoStiefvater ArnoStiefvater requested a review from a team May 10, 2021 13:35
@ArnoStiefvater ArnoStiefvater marked this pull request as ready for review May 10, 2021 13:37
@ArnoStiefvater ArnoStiefvater force-pushed the remove_source_iface branch 2 times, most recently from 365ad32 to 5fcbd7b Compare May 12, 2021 06:52
Remove handling of `source_iface` setting and
related settings `ifaces_deny`, `ifaces_allow`,
`sys_ifaces_deny` and `sys_ifaces_allow` on
scanner side.

Standalone NASL interpreter can still handle
`source_iface` preference for now.
It is done in attack.c so we can easily
send an erro message to the client.
src/attack.c Outdated
*
* @return True if deprecated prefs are in preference table. Else False.
*/
gboolean
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be static? Shouldn't be just a void function? the return value is not used, and the message is sent directly from the function.

@jjnicola jjnicola merged commit 27a4f3e into greenbone:master May 12, 2021
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.

2 participants