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
14e30b69
Commit
14e30b69
authored
Dec 02, 2019
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pretty printing
parent
03115ad1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+0
-0
kconfig-hardened-check.py
kconfig-hardened-check.py
+5
-5
No files found.
README.md
View file @
14e30b69
This diff is collapsed.
Click to expand it.
kconfig-hardened-check.py
View file @
14e30b69
...
...
@@ -382,11 +382,11 @@ def construct_checklist(checklist, arch):
checklist
.
append
(
OptCheck
(
'MODIFY_LDT_SYSCALL'
,
'is not set'
,
'my'
,
'cut_attack_surface'
))
if
debug_mode
or
arch
==
'ARM64'
:
checklist
.
append
(
OptCheck
(
'ARM64_PTR_AUTH'
,
'y'
,
'defconfig'
,
'userspace_
protection
'
))
checklist
.
append
(
OptCheck
(
'ARM64_PTR_AUTH'
,
'y'
,
'defconfig'
,
'userspace_
hardening
'
))
if
debug_mode
or
arch
==
'X86_64'
or
arch
==
'ARM64'
:
checklist
.
append
(
OptCheck
(
'ARCH_MMAP_RND_BITS'
,
'32'
,
'clipos'
,
'userspace_
protection
'
))
checklist
.
append
(
OptCheck
(
'ARCH_MMAP_RND_BITS'
,
'32'
,
'clipos'
,
'userspace_
hardening
'
))
if
debug_mode
or
arch
==
'X86_32'
or
arch
==
'ARM'
:
checklist
.
append
(
OptCheck
(
'ARCH_MMAP_RND_BITS'
,
'16'
,
'my'
,
'userspace_
protection
'
))
checklist
.
append
(
OptCheck
(
'ARCH_MMAP_RND_BITS'
,
'16'
,
'my'
,
'userspace_
hardening
'
))
# checklist.append(OptCheck('LKDTM', 'm', 'my', 'feature_test'))
...
...
@@ -406,7 +406,7 @@ def print_checklist(checklist, with_results):
print
(
'{:^45}|{:^13}|{:^10}|{:^20}'
.
format
(
'option name'
,
'desired val'
,
'decision'
,
'reason'
),
end
=
''
)
sep_line_len
=
91
if
with_results
:
print
(
'|
|{:^28
}'
.
format
(
'check result'
),
end
=
''
)
print
(
'|
{
}'
.
format
(
'check result'
),
end
=
''
)
sep_line_len
+=
30
print
()
...
...
@@ -415,7 +415,7 @@ def print_checklist(checklist, with_results):
for
opt
in
checklist
:
print
(
'CONFIG_{:<38}|{:^13}|{:^10}|{:^20}'
.
format
(
opt
.
name
,
opt
.
expected
,
opt
.
decision
,
opt
.
reason
),
end
=
''
)
if
with_results
:
print
(
'|
|{:^28
}'
.
format
(
opt
.
result
),
end
=
''
)
print
(
'|
{
}'
.
format
(
opt
.
result
),
end
=
''
)
print
()
print
()
...
...
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