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
b68df4d3
Commit
b68df4d3
authored
3 years ago
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve 'type' for ComplexOptCheck and PresenceCheck classes
parent
b96571d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
__init__.py
kconfig_hardened_check/__init__.py
+2
-2
No files found.
kconfig_hardened_check/__init__.py
View file @
b68df4d3
...
@@ -159,7 +159,7 @@ class PresenceCheck:
...
@@ -159,7 +159,7 @@ class PresenceCheck:
if
self
.
type
==
'kconfig'
:
if
self
.
type
==
'kconfig'
:
self
.
name
=
'CONFIG_'
+
name
self
.
name
=
'CONFIG_'
+
name
else
:
else
:
s
elf
.
name
=
name
s
ys
.
exit
(
'[!] ERROR: unsupported type "{}" for {}'
.
format
(
type
,
self
.
__class__
.
__name__
))
self
.
state
=
None
self
.
state
=
None
self
.
result
=
None
self
.
result
=
None
...
@@ -193,7 +193,7 @@ class ComplexOptCheck:
...
@@ -193,7 +193,7 @@ class ComplexOptCheck:
@property
@property
def
type
(
self
):
def
type
(
self
):
return
self
.
opts
[
0
]
.
type
return
'complex'
@property
@property
def
expected
(
self
):
def
expected
(
self
):
...
...
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