-
Notifications
You must be signed in to change notification settings - Fork 0
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
Slave ports can have their current vuln count incorrectly displayed #14
Comments
Perhaps: when the master port is updated, rerun all the slave ports. Or.. when evaluating the slave ports for vulnerability, look also at ports.version and ports.revision. |
I will test a solution: when a port is marked as vuln (i.e. the Skull at the top of the port page), do the same for all slave ports. |
This is what I wrote without referring to the db schema. It will contain errors:
|
This is closer:
|
This is the key clause. It bring back the port ids of the slave ports for a given master port:
Explain analyze details are here; quite fast: http://explain.depesz.com/s/X4do But looking at that SQL now, it seems to have too many clauses. I might be able to simplify it. I need sleep. Next step, develop the trigger. |
On the plane, I managed to create some triggers based on this. |
http://www.freshports.org/mail/mutt-lite/ will only list commits against mail/mutt-lite. Any commits against mail/mutt will be at http://www.freshports.org/mail/mutt/ But the version etc at http://www.freshports.org/mail/mutt-lite/ will not match what's shown at http://www.freshports.org/mail/mutt/ |
I wonder if I meant 'will now', instead of 'will not'. |
Current vuln status is shown by a skull at the top of the page.
Which skull to show (active or greyed out) is decided by an entry for this port in the ports_vulnerable table, which has three column: port_id, current, past
The stored procedure PortsVulnerabilityCountAdjust(port_id) sets these values. There seems to be a problem with this query:
I'll have to look into that to see why it goes wrong, but I suspect its because there is no commit which affects the current version of the port. This is a special case for slave ports, because their version can be derived from the master and there may not be a commit against the slave port for a given PORTVERSION value.
I am not sure how best to solve this.
The text was updated successfully, but these errors were encountered: