Check Kernel Module Package and Kernel Module information
Project description
soliddriver-checks
soliddriver-checks is
a tool for KMP(Kernel Module Package)
and installed/running kernel module
checking, with this tool, users can have an report of their KMP(s) and KM status (the report can be formatted in html
, excel
and json
), the tool can be run as command line tool or service:
Note: This tool only check the KMP and KM are built meet SUSE’s requirement, don’t look into the code perspective. So any bugs or security related issues inside the kernel module can not be found.
- KM: kernel module
- KMP: kernel module package
Installation:
- pypi:
pip install soliddriver-checks
- zypper: the rpms can be found on build.opensuse.org
How should you address the issues?
You should contact your IHVs to rebuild the KMP for you to meet the requirement of SUSE, and ask them to to follow the Kernel Module Packages Manual or contact SUSE directly if they don’t know how to do it.
- Highlight in yellow: Warning, this is not necessary but have potential issue, like no signature, not GPL compatible license and etc.
- Highlight in red: Error, could cause issue during the installation, after kernel upgrade or during the kernel module is running and etc.
KMP Report:
- “Summary of the result from vendor perspective”: Summarize the number of check failure.
- “Check result in details”: Show the detail of every KMP been checked by this tool.
KM Report:
- Show the detail of every kernel module is running or founded under
“/lib/modules”
.
Usage: soliddriver-checks [OPTIONS] [CHECK_TARGET]
Run checks against CHECK_TARGET.
CHECK_TARGET can be:
KMP file
directory containing KMP files
"system" to check locally installed kernel modules
Options:
-f, --format [html|xlsx|json] Specify output format
-i, --filter TEXT Filter kernel module to report (Beta)
-o, --output TEXT Output destination. Target can be filename or
point existing directory If directory, files
will be placed in the directory using a
autmatically generated filename. If target is
not an existing directory, file name is
assumed and output files will use the path
and file name specified. In either case, the
file extension will be automatically appended
matching on the output format
--version
--help Show this message and exit.
filter (only works in kernel module check):
“key” [ = | != | match | no ] “value”
and | or
( )
EBNF grammer can be found in filter.py
-
All the
“key”
can be found in the json file generated by this tool, they are:
[ modulename | filename | license | signature | supported | running | kmp ]
- modulename -> Name of the kernel module
- filename -> File path
- license. -> License
- signature -> Signature
- supported -> Value of “supported” flag
- running -> Running status (True | False)
- kmp -> Installed by which KMP
-
match: match only take the python regex pattern.
- Search by evaluation of
soliddirver-checks
:
“key.level” [ = | != ] “PASS” | “WARNING” | “ERROR”
- If you want to search by row evaluation, the
“key”
should be“level.level”
:
“level.level” [ = | != ] “PASS” | “WARNING” | “ERROR”
- Search by evaluation of
Examples:
- Check KMPs under a directory, and generated a HTML report:
soliddriver-checks /path/to/kmps -f html -o [report-name].html
- Check current system’s KM, and generated a excel report:
soliddriver-checks -f xlsx -o [report-name].xlsx
- Run soliddirver-checks as service:
export REFRESH_INTERVAL=12 # data will be refreshed every 12 hours.
soliddriver-checks-service
- Generate report from remote (make sure you have the server running remotely), and generated a HTML report:
soliddriver-checks http://remote-ip:8080/kms_info -f html -o [report-name].html
- Generate a kernel module report only contain which are not meet SUSE requirement:
soliddriver-checks -f html -o [report-name].html -i ‘“level.level” != “PASS”’
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file soliddriver-checks-3.0.8.tar.gz
.
File metadata
- Download URL: soliddriver-checks-3.0.8.tar.gz
- Upload date:
- Size: 44.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f920f41ca0d83867901821e13e70db02749b891691647d25f578dd37a198d7ce |
|
MD5 | 12e1b6a91ca18d05536459ec2e9d5a31 |
|
BLAKE2b-256 | bb5fa85028a781d2b4cc4f588c8897d81d7ab6742e27ab7c2f0a4b4166c19bed |
File details
Details for the file soliddriver_checks-3.0.8-py3-none-any.whl
.
File metadata
- Download URL: soliddriver_checks-3.0.8-py3-none-any.whl
- Upload date:
- Size: 47.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af633a0a6145115491d63d45c055f10c6befa5ffe2d6c13947a04ba291c6c91e |
|
MD5 | 20cd3292a6d1fb4cc0b9a1b82d9e3f12 |
|
BLAKE2b-256 | b27a900413698f8dd794cb4653461a2319ba022e61e2fb60c609c7cc8142d72b |