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
46a7b1fe
Commit
46a7b1fe
authored
Dec 29, 2023
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the comment for the 'slab_common.usercopy_fallback' check
parent
c1452a28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
checks.py
kernel_hardening_checker/checks.py
+3
-2
No files found.
kernel_hardening_checker/checks.py
View file @
46a7b1fe
...
@@ -505,8 +505,9 @@ def add_cmdline_checks(l, arch):
...
@@ -505,8 +505,9 @@ def add_cmdline_checks(l, arch):
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'hardened_usercopy'
,
'is not set'
)))]
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'hardened_usercopy'
,
'is not set'
)))]
l
+=
[
AND
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'slab_common.usercopy_fallback'
,
'is not set'
),
l
+=
[
AND
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'slab_common.usercopy_fallback'
,
'is not set'
),
KconfigCheck
(
'self_protection'
,
'kspp'
,
'HARDENED_USERCOPY_FALLBACK'
,
'is not set'
))]
KconfigCheck
(
'self_protection'
,
'kspp'
,
'HARDENED_USERCOPY_FALLBACK'
,
'is not set'
))]
# don't require slab_common.usercopy_fallback=0,
# Consequence of the HARDENED_USERCOPY_FALLBACK check by kspp.
# since HARDENED_USERCOPY_FALLBACK was removed in Linux v5.16
# Don't require slab_common.usercopy_fallback=0,
# since HARDENED_USERCOPY_FALLBACK was removed in Linux v5.16.
if
arch
in
(
'X86_64'
,
'ARM64'
,
'X86_32'
):
if
arch
in
(
'X86_64'
,
'ARM64'
,
'X86_32'
):
l
+=
[
OR
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'iommu.strict'
,
'1'
),
l
+=
[
OR
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'iommu.strict'
,
'1'
),
AND
(
KconfigCheck
(
'self_protection'
,
'kspp'
,
'IOMMU_DEFAULT_DMA_STRICT'
,
'y'
),
AND
(
KconfigCheck
(
'self_protection'
,
'kspp'
,
'IOMMU_DEFAULT_DMA_STRICT'
,
'y'
),
...
...
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