Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kernel-hardening-checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
kernel-hardening-checker
Commits
69b66ef3
Commit
69b66ef3
authored
Nov 21, 2021
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the output modes specified by the `-m` parameter
parent
d8d144c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
+20
-1
README.md
README.md
+20
-1
No files found.
README.md
View file @
69b66ef3
...
@@ -43,6 +43,8 @@ pip install git+https://github.com/a13xp0p0v/kconfig-hardened-check
...
@@ -43,6 +43,8 @@ pip install git+https://github.com/a13xp0p0v/kconfig-hardened-check
or simply run
`./bin/kconfig-hardened-check`
from the cloned repository.
or simply run
`./bin/kconfig-hardened-check`
from the cloned repository.
Some Linux distributions also provide
`kconfig-hardened-check`
as a package.
## Usage
## Usage
```
```
usage: kconfig-hardened-check [-h] [--version] [-p {X86_64,X86_32,ARM64,ARM}]
usage: kconfig-hardened-check [-h] [--version] [-p {X86_64,X86_32,ARM64,ARM}]
...
@@ -62,7 +64,24 @@ optional arguments:
...
@@ -62,7 +64,24 @@ optional arguments:
choose the report mode
choose the report mode
```
```
## Output for `Ubuntu 20.04 LTS (Focal Fossa)` kernel config
## Output modes
-
no
`-m`
argument for the default output mode (see the example below)
-
`-m verbose`
for printing additional info:
-
config options without a corresponding check
-
internals of complex checks with AND/OR, like this:
```
-------------------------------------------------------------------------------------------
<<< OR >>>
CONFIG_STRICT_DEVMEM | y |defconfig | cut_attack_surface
CONFIG_DEVMEM | is not set | kspp | cut_attack_surface
-------------------------------------------------------------------------------------------
```
-
`-m show_fail`
for showing only the failed checks
-
`-m show_ok`
for showing only the successful checks
-
`-m json`
for printing the results in JSON format (for combining
`kconfig-hardened-check`
with other tools)
## Example output for `Ubuntu 20.04 LTS (Focal Fossa)` kernel config
```
```
$ ./bin/kconfig-hardened-check -c kconfig_hardened_check/config_files/distros/ubuntu-focal.config
$ ./bin/kconfig-hardened-check -c kconfig_hardened_check/config_files/distros/ubuntu-focal.config
[+] Config file to check: kconfig_hardened_check/config_files/distros/ubuntu-focal.config
[+] Config file to check: kconfig_hardened_check/config_files/distros/ubuntu-focal.config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment