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
7e258c66
Commit
7e258c66
authored
Jul 20, 2018
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename check_state() according the new meaning
parent
cb0711d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
kconfig-hardened-check.py
kconfig-hardened-check.py
+3
-3
No files found.
kconfig-hardened-check.py
View file @
7e258c66
...
...
@@ -182,10 +182,10 @@ def get_option_state(options, name):
return
options
[
name
]
if
name
in
options
else
None
def
check_state
(
options
):
def
perform_checks
(
parsed_
options
):
for
o
in
opt_list
:
opt
=
o
[
0
]
opt
.
state
=
get_option_state
(
options
,
opt
.
name
)
opt
.
state
=
get_option_state
(
parsed_
options
,
opt
.
name
)
_
,
o
[
1
]
=
opt
.
check
()
...
...
@@ -214,7 +214,7 @@ def check_config_file(fname):
if
option
is
not
None
:
parsed_options
[
option
]
=
value
check_state
(
parsed_options
)
perform_checks
(
parsed_options
)
print_check_results
()
if
debug_mode
:
...
...
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