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
57eb7658
Commit
57eb7658
authored
2 years ago
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop some of my security policy recommendations
parent
89acc36f
master
…
v0.6.6
v0.6.1
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
__init__.py
kconfig_hardened_check/__init__.py
+0
-6
No files found.
kconfig_hardened_check/__init__.py
View file @
57eb7658
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
#
#
# N.B Hardening command line parameters:
# N.B Hardening command line parameters:
# iommu=force (does it help against DMA attacks?)
# iommu=force (does it help against DMA attacks?)
# loadpin.enforce=1
#
#
# Mitigations of CPU vulnerabilities:
# Mitigations of CPU vulnerabilities:
# Аrch-independent:
# Аrch-independent:
...
@@ -540,11 +539,6 @@ def add_kconfig_checks(l, arch):
...
@@ -540,11 +539,6 @@ def add_kconfig_checks(l, arch):
l
+=
[
KconfigCheck
(
'security_policy'
,
'clipos'
,
'SECURITY_LOCKDOWN_LSM_EARLY'
,
'y'
)]
l
+=
[
KconfigCheck
(
'security_policy'
,
'clipos'
,
'SECURITY_LOCKDOWN_LSM_EARLY'
,
'y'
)]
l
+=
[
KconfigCheck
(
'security_policy'
,
'clipos'
,
'LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY'
,
'y'
)]
l
+=
[
KconfigCheck
(
'security_policy'
,
'clipos'
,
'LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY'
,
'y'
)]
l
+=
[
KconfigCheck
(
'security_policy'
,
'my'
,
'SECURITY_WRITABLE_HOOKS'
,
'is not set'
)]
# refers to SECURITY_SELINUX_DISABLE
l
+=
[
KconfigCheck
(
'security_policy'
,
'my'
,
'SECURITY_WRITABLE_HOOKS'
,
'is not set'
)]
# refers to SECURITY_SELINUX_DISABLE
l
+=
[
KconfigCheck
(
'security_policy'
,
'my'
,
'SECURITY_SAFESETID'
,
'y'
)]
loadpin_is_set
=
KconfigCheck
(
'security_policy'
,
'my'
,
'SECURITY_LOADPIN'
,
'y'
)
l
+=
[
loadpin_is_set
]
# needs userspace support
l
+=
[
AND
(
KconfigCheck
(
'security_policy'
,
'my'
,
'SECURITY_LOADPIN_ENFORCE'
,
'y'
),
loadpin_is_set
)]
# 'cut_attack_surface', 'defconfig'
# 'cut_attack_surface', 'defconfig'
l
+=
[
OR
(
KconfigCheck
(
'cut_attack_surface'
,
'defconfig'
,
'BPF_UNPRIV_DEFAULT_OFF'
,
'y'
),
l
+=
[
OR
(
KconfigCheck
(
'cut_attack_surface'
,
'defconfig'
,
'BPF_UNPRIV_DEFAULT_OFF'
,
'y'
),
...
...
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