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
4def5a25
Commit
4def5a25
authored
Jun 08, 2022
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop useless checks, the ComplexOptCheck constructor has already checked this
parent
6734f7a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
__init__.py
kconfig_hardened_check/__init__.py
+0
-3
No files found.
kconfig_hardened_check/__init__.py
View file @
4def5a25
...
@@ -240,8 +240,6 @@ class OR(ComplexOptCheck):
...
@@ -240,8 +240,6 @@ class OR(ComplexOptCheck):
# OR(<X_is_hardened>, <X_is_disabled>)
# OR(<X_is_hardened>, <X_is_disabled>)
# OR(<X_is_hardened>, <old_X_is_hardened>)
# OR(<X_is_hardened>, <old_X_is_hardened>)
def
check
(
self
):
def
check
(
self
):
if
not
self
.
opts
:
sys
.
exit
(
'[!] ERROR: invalid OR check'
)
for
i
,
opt
in
enumerate
(
self
.
opts
):
for
i
,
opt
in
enumerate
(
self
.
opts
):
opt
.
check
()
opt
.
check
()
if
opt
.
result
.
startswith
(
'OK'
):
if
opt
.
result
.
startswith
(
'OK'
):
...
@@ -287,7 +285,6 @@ class AND(ComplexOptCheck):
...
@@ -287,7 +285,6 @@ class AND(ComplexOptCheck):
if
not
opt
.
result
.
startswith
(
'FAIL: version'
):
if
not
opt
.
result
.
startswith
(
'FAIL: version'
):
sys
.
exit
(
'[!] ERROR: unexpected FAIL description "{}"'
.
format
(
opt
.
result
))
sys
.
exit
(
'[!] ERROR: unexpected FAIL description "{}"'
.
format
(
opt
.
result
))
return
return
sys
.
exit
(
'[!] ERROR: invalid AND check'
)
def
detect_arch
(
fname
,
archs
):
def
detect_arch
(
fname
,
archs
):
...
...
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