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
4e4ea6bf
Commit
4e4ea6bf
authored
6 years ago
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the README (arch support)
parent
6e51c138
master
…
v0.6.6
v0.6.1
v0.5.17
v0.5.14
v0.5.10
v0.5.9
v0.5.7
v0.5.5
v0.5.3
v0.5.2
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
README.md
README.md
+6
-4
No files found.
README.md
View file @
4e4ea6bf
...
@@ -22,13 +22,14 @@ __TODO:__ add hardening preferences for ARM.
...
@@ -22,13 +22,14 @@ __TODO:__ add hardening preferences for ARM.
### Usage
### Usage
```
```
#./kconfig-hardened-check.py
#./kconfig-hardened-check.py
usage: kconfig-hardened-check.py [-h] [-p] [-c CONFIG] [--debug]
usage: kconfig-hardened-check.py [-h] [-p
{X86_64}
] [-c CONFIG] [--debug]
Checks the hardening options in the Linux kernel config
Checks the hardening options in the Linux kernel config
optional arguments:
optional arguments:
-h, --help show this help message and exit
-h, --help show this help message and exit
-p, --print print hardening preferences
-p {X86_64}, --print {X86_64}
print hardening preferences for selected architecture
-c CONFIG, --config CONFIG
-c CONFIG, --config CONFIG
check the config_file against these preferences
check the config_file against these preferences
--debug enable internal debug mode
--debug enable internal debug mode
...
@@ -36,14 +37,15 @@ optional arguments:
...
@@ -36,14 +37,15 @@ optional arguments:
### Script output for `Ubuntu 18.04 (Bionic Beaver)` kernel config
### Script output for `Ubuntu 18.04 (Bionic Beaver)` kernel config
```
```
#./kconfig-hardened-check.py -c config_files/ubuntu-bionic-generic.config
#./kconfig-hardened-check.py -c config_files/ubuntu-bionic-generic.config
[+] Trying to detect architecture in "config_files/ubuntu-bionic-generic.config"...
[+] Detected architecture: X86_64
[+] Checking "config_files/ubuntu-bionic-generic.config" against hardening preferences...
[+] Checking "config_files/ubuntu-bionic-generic.config" against hardening preferences...
option name | desired val | decision | reason || check result
option name | desired val | decision | reason || check result
===================================================================================================================
===================================================================================================================
CONFIG_BUG | y |defconfig | self_protection || OK
CONFIG_BUG | y |defconfig | self_protection || OK
CONFIG_PAGE_TABLE_ISOLATION | y |defconfig | self_protection || OK
CONFIG_PAGE_TABLE_ISOLATION | y |defconfig | self_protection || OK
CONFIG_RETPOLINE | y |defconfig | self_protection || OK
CONFIG_RETPOLINE | y |defconfig | self_protection || OK
CONFIG_X86_64 | y |defconfig | self_protection || OK
CONFIG_X86_SMAP | y |defconfig | self_protection || OK
CONFIG_X86_SMAP | y |defconfig | self_protection || OK
CONFIG_X86_INTEL_UMIP | y |defconfig | self_protection || OK
CONFIG_X86_INTEL_UMIP | y |defconfig | self_protection || OK
CONFIG_STRICT_KERNEL_RWX | y |defconfig | self_protection || OK
CONFIG_STRICT_KERNEL_RWX | y |defconfig | self_protection || OK
...
...
This diff is collapsed.
Click to expand it.
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