-
Notifications
You must be signed in to change notification settings - Fork 68
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
Missing package in tutorial. "Make" generates alot of noise. Drop root user requirement. #55
Comments
While it is ok to run Please store DB in users home dir instead of: |
The root requirement is only for the installation. The installation preferably creates a machine account to run the command with. The command needs read privileges on the system (or at least on the installed software locations) which often doesn't require privileged authorizations, and write privileges towards its on-system database. While you can also just run cvechecker from an end user perspective, that isn't the main intention. You can integrate cvechecker with your software installation tool (cfr the instructions for Gentoo Linux) where it updates the database after every package installation to always reflect the current state. Another way is to execute the checks through a scheduler of some sort (like cron) from a system perspective. Hence why the tool isn't by default suggested to be an end user tool - but there is nothing prohibiting you from installing it as such. As for the noise (well, not noise - QA and other quality indicators), I'll have a look at those and fix the code where possible. |
I've added the libbsd-dev requirement in the installation instructions. As for the quality warnings from the compiler, the majority of these have been resolved. The ones you refer to do remain for now, so I'm going to leave this issue open while I ponder how to resolve that. I do think that all copy operations take the field sizes into account, and the code will indeed truncate the output if it goes beyond the maximum field size. If it is truncated, the internal SQL command that it invokes towards sqlite will be incorrect and the application will fail. To fix this properly, I will need to make sure the dynamic SQL statement is length-wise guaranteed to remain within its bounds, which is hard as it is built up based on the user's current database. It isn't impossible to rewrite the code to deal with that, but requires a bit of thought. |
I followed this tutorial: https://github.com/sjvermeu/cvechecker/wiki/Installation#manual-any-linux-distribution
Looks like package
libbsd-dev
is missing in your list:sudo apt-get install libbsd-dev
BTW: i drop mysql support:
But make produces a lot of noise:
Is that ok?
My System:
Make
The text was updated successfully, but these errors were encountered: