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
4de5662e
Commit
4de5662e
authored
2 years ago
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the 'pylint disable' statements
parent
798f7d45
master
…
v0.6.6
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
__init__.py
kconfig_hardened_check/__init__.py
+1
-3
checks.py
kconfig_hardened_check/checks.py
+2
-2
engine.py
kconfig_hardened_check/engine.py
+2
-2
No files found.
kconfig_hardened_check/__init__.py
View file @
4de5662e
#!/usr/bin/python3
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring
# pylint: disable=line-too-long,invalid-name,too-many-branches,too-many-statements
"""
This tool helps me to check Linux kernel options against
my security hardening preferences for X86_64, ARM64, X86_32, and ARM.
...
...
@@ -13,6 +10,7 @@ Author: Alexander Popov <alex.popov@linux.com>
This module performs input/output.
"""
# pylint: disable=missing-function-docstring,line-too-long,invalid-name,too-many-branches,too-many-statements
import
sys
from
argparse
import
ArgumentParser
...
...
This diff is collapsed.
Click to expand it.
kconfig_hardened_check/checks.py
View file @
4de5662e
...
...
@@ -43,8 +43,8 @@ This module contains knowledge for checks.
# amd_iommu=on
# efi=disable_early_pci_dma
# pylint: disable=missing-
module-docstring,missing-class-docstring,missing-function-docstring
# pylint: disable=
line-too-long,invalid-name,too-many-branches,too-many
-statements
# pylint: disable=missing-
function-docstring,line-too-long,invalid-name
# pylint: disable=
too-many-branches,too-many-statements,too-many-return
-statements
from
.engine
import
KconfigCheck
,
CmdlineCheck
,
VersionCheck
,
OR
,
AND
...
...
This diff is collapsed.
Click to expand it.
kconfig_hardened_check/engine.py
View file @
4de5662e
...
...
@@ -10,8 +10,8 @@ Author: Alexander Popov <alex.popov@linux.com>
This module is the engine of checks.
"""
# pylint: disable=missing-
module-docstring,missing-
class-docstring,missing-function-docstring
# pylint: disable=line-too-long,invalid-name,too-many-branches
,too-many-statements
# pylint: disable=missing-class-docstring,missing-function-docstring
# pylint: disable=line-too-long,invalid-name,too-many-branches
class
OptCheck
:
...
...
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