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
e2ed77e8
Commit
e2ed77e8
authored
Mar 24, 2020
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CLIP OS recommends disabling Intel TSX
parent
c513c49e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
kconfig-hardened-check.py
kconfig-hardened-check.py
+3
-0
No files found.
kconfig-hardened-check.py
View file @
e2ed77e8
...
...
@@ -29,6 +29,7 @@
# spec_store_bypass_disable=on
# l1tf=full,force
# mds=full,nosmt
# tsx=off
# ARM64:
# kpti=on
# ssbd=force-on
...
...
@@ -419,6 +420,8 @@ def construct_checklist(checklist, arch):
checklist
.
append
(
OptCheck
(
'BPF_SYSCALL'
,
'is not set'
,
'lockdown'
,
'cut_attack_surface'
))
# refers to LOCKDOWN
checklist
.
append
(
OptCheck
(
'MMIOTRACE_TEST'
,
'is not set'
,
'lockdown'
,
'cut_attack_surface'
))
# refers to LOCKDOWN
if
arch
==
'X86_64'
or
arch
==
'X86_32'
:
checklist
.
append
(
OptCheck
(
'X86_INTEL_TSX_MODE_OFF'
,
'y'
,
'clipos'
,
'cut_attack_surface'
))
# tsx=off
checklist
.
append
(
OptCheck
(
'STAGING'
,
'is not set'
,
'clipos'
,
'cut_attack_surface'
))
checklist
.
append
(
OptCheck
(
'KSM'
,
'is not set'
,
'clipos'
,
'cut_attack_surface'
))
# to prevent FLUSH+RELOAD attack
# checklist.append(OptCheck('IKCONFIG', 'is not set', 'clipos', 'cut_attack_surface')) # no, this info is needed for this check :)
...
...
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