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 permission check on host in OS host count #1301

Merged
merged 6 commits into from
Oct 6, 2020

Conversation

mattmundell
Copy link
Contributor

What:

Add a permission check on the hosts in the host count of the OS asset iterator.

Why:

The count was including hosts that the user did not have access to.

How:

Scan a new host with a new OS with user 1.
Scan same host with user 2.
Check GSA > Assets > OSs: count should be 1 not 2.

Checklist:

@mattmundell mattmundell marked this pull request as ready for review September 16, 2020 15:38
Copy link
Member

@timopollmeier timopollmeier left a comment

Choose a reason for hiding this comment

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

This seems to work for the most part but it seems to break the "Operating Systems by Vulnerability Score" chart for me.
I think it's probably because the replacement of the extra WITH clause by extra_tables isn't applied (correctly) to the get_aggregates command.

@mattmundell
Copy link
Contributor Author

This seems to work for the most part but it seems to break the "Operating Systems by Vulnerability Score" chart for me.
I think it's probably because the replacement of the extra WITH clause by extra_tables isn't applied (correctly) to the get_aggregates command.

Should work now.

@timopollmeier timopollmeier merged commit 608e1bc into gvmd-20.08 Oct 6, 2020
@timopollmeier timopollmeier deleted the best-os-perms branch October 15, 2021 06:43
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