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
4b4b6481
Commit
4b4b6481
authored
6 years ago
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop assertions which are now useless
parent
6403536a
master
…
v0.6.6
v0.6.1
v0.5.17
v0.5.14
v0.5.10
v0.5.9
v0.5.7
v0.5.5
v0.5.3
v0.5.2
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
kconfig-hardened-check.py
kconfig-hardened-check.py
+0
-8
No files found.
kconfig-hardened-check.py
View file @
4b4b6481
...
...
@@ -179,8 +179,6 @@ def get_option_state(options, name):
def
check_state
(
options
):
for
o
in
opt_list
:
opt
=
o
[
0
]
if
o
[
1
]
!=
''
:
sys
.
exit
(
'[!] BUG: CONFIG_{} was found more than once'
.
format
(
o
[
0
]
.
name
))
opt
.
state
=
get_option_state
(
options
,
opt
.
name
)
_
,
o
[
1
]
=
opt
.
check
()
...
...
@@ -196,15 +194,9 @@ def check_config_file(fname):
line
=
line
.
strip
()
if
opt_is_on
.
match
(
line
):
if
line
[:
7
]
!=
'CONFIG_'
:
sys
.
exit
(
'[!] BUG: bad enabled config option "{}"'
.
format
(
line
))
config
,
value
=
line
[
7
:]
.
split
(
'='
,
1
)
parsed_options
[
config
]
=
value
elif
opt_is_off
.
match
(
line
):
if
line
[:
9
]
!=
'# CONFIG_'
:
sys
.
exit
(
'[!] BUG: bad disabled config option "{}"'
.
format
(
line
))
config
,
value
=
line
[
9
:]
.
split
(
' '
,
1
)
if
value
!=
'is not set'
:
sys
.
exit
(
'[!] BUG: bad disabled config option "{}"'
.
format
(
line
))
...
...
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