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
bd3b0638
Commit
bd3b0638
authored
Aug 13, 2023
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report that --print and --generate can't be used together
parent
92abe5f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
__init__.py
kconfig_hardened_check/__init__.py
+3
-1
No files found.
kconfig_hardened_check/__init__.py
View file @
bd3b0638
...
...
@@ -348,6 +348,8 @@ def main():
if
args
.
print
:
assert
(
args
.
config
is
None
and
args
.
cmdline
is
None
and
args
.
sysctl
is
None
),
'unexpected args'
if
args
.
generate
:
sys
.
exit
(
'[!] ERROR: --print and --generate can
\'
t be used together'
)
if
mode
and
mode
not
in
(
'verbose'
,
'json'
):
sys
.
exit
(
f
'[!] ERROR: wrong mode "{mode}" for --print'
)
arch
=
args
.
print
...
...
@@ -360,7 +362,7 @@ def main():
sys
.
exit
(
0
)
if
args
.
generate
:
assert
(
args
.
config
is
None
and
args
.
cmdline
is
None
and
args
.
sysctl
is
None
),
'unexpected args'
assert
(
args
.
config
is
None
and
args
.
cmdline
is
None
and
args
.
sysctl
is
None
and
args
.
print
is
None
),
'unexpected args'
if
mode
:
sys
.
exit
(
f
'[!] ERROR: wrong mode "{mode}" for --generate'
)
arch
=
args
.
generate
...
...
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