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
Feb 26, 2023
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the 'pylint disable' statements
parent
798f7d45
Hide 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
#!/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
This tool helps me to check Linux kernel options against
my security hardening preferences for X86_64, ARM64, X86_32, and ARM.
my security hardening preferences for X86_64, ARM64, X86_32, and ARM.
...
@@ -13,6 +10,7 @@ Author: Alexander Popov <alex.popov@linux.com>
...
@@ -13,6 +10,7 @@ Author: Alexander Popov <alex.popov@linux.com>
This module performs input/output.
This module performs input/output.
"""
"""
# pylint: disable=missing-function-docstring,line-too-long,invalid-name,too-many-branches,too-many-statements
import
sys
import
sys
from
argparse
import
ArgumentParser
from
argparse
import
ArgumentParser
...
...
kconfig_hardened_check/checks.py
View file @
4de5662e
...
@@ -43,8 +43,8 @@ This module contains knowledge for checks.
...
@@ -43,8 +43,8 @@ This module contains knowledge for checks.
# amd_iommu=on
# amd_iommu=on
# efi=disable_early_pci_dma
# efi=disable_early_pci_dma
# pylint: disable=missing-
module-docstring,missing-class-docstring,missing-function-docstring
# pylint: disable=missing-
function-docstring,line-too-long,invalid-name
# pylint: disable=
line-too-long,invalid-name,too-many-branches,too-many
-statements
# pylint: disable=
too-many-branches,too-many-statements,too-many-return
-statements
from
.engine
import
KconfigCheck
,
CmdlineCheck
,
VersionCheck
,
OR
,
AND
from
.engine
import
KconfigCheck
,
CmdlineCheck
,
VersionCheck
,
OR
,
AND
...
...
kconfig_hardened_check/engine.py
View file @
4de5662e
...
@@ -10,8 +10,8 @@ Author: Alexander Popov <alex.popov@linux.com>
...
@@ -10,8 +10,8 @@ Author: Alexander Popov <alex.popov@linux.com>
This module is the engine of checks.
This module is the engine of checks.
"""
"""
# pylint: disable=missing-
module-docstring,missing-
class-docstring,missing-function-docstring
# pylint: disable=missing-class-docstring,missing-function-docstring
# pylint: disable=line-too-long,invalid-name,too-many-branches
,too-many-statements
# pylint: disable=line-too-long,invalid-name,too-many-branches
class
OptCheck
:
class
OptCheck
:
...
...
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