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
c1090722
Commit
c1090722
authored
Apr 23, 2023
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
engine: implement override_expected_value()
parent
9297ada2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
engine.py
kconfig_hardened_check/engine.py
+8
-0
No files found.
kconfig_hardened_check/engine.py
View file @
c1090722
...
...
@@ -283,6 +283,14 @@ def populate_with_data(checklist, data, data_type):
populate_opt_with_data
(
opt
,
data
,
data_type
)
def
override_expected_value
(
checklist
,
name
,
new_val
):
for
opt
in
checklist
:
if
opt
.
name
==
name
:
assert
(
opt
.
type
in
(
'kconfig'
,
'cmdline'
)),
\
f
'overriding an expected value for "{opt.type}" checks is not supported yet'
opt
.
expected
=
new_val
def
perform_checks
(
checklist
):
for
opt
in
checklist
:
opt
.
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