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
82373998
Commit
82373998
authored
Aug 28, 2023
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the functional tests more informative
Drop `> /dev/null` for non-verbose output of the tool.
parent
ec9c9816
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
functional_test.sh
.github/workflows/functional_test.sh
+11
-11
No files found.
.github/workflows/functional_test.sh
View file @
82373998
...
...
@@ -51,24 +51,24 @@ for C in $KCONFIGS
do
COUNT
=
$(
expr
$COUNT
+ 1
)
echo
"
\n
>>>>> checking kconfig number
$COUNT
<<<<<"
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-m
verbose
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
/proc/cmdline
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-s
/tmp/sysctls
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
/proc/cmdline
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-s
/tmp/sysctls
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
-m
verbose
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
-m
json
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
-m
show_ok
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
-m
show_fail
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
-m
json
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
-m
show_ok
coverage run
-a
--branch
bin/kconfig-hardened-check
-c
$C
-l
./cmdline_example
-s
$SYSCTL_EXAMPLE
-m
show_fail
done
echo
"
\n
>>>>> have checked
$COUNT
kconfigs <<<<<"
echo
">>>>> check sysctl separately <<<<<"
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
-m
verbose
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
-m
json
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
-m
show_ok
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
-m
show_fail
>
/dev/null
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
-m
json
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
-m
show_ok
coverage run
-a
--branch
bin/kconfig-hardened-check
-s
$SYSCTL_EXAMPLE
-m
show_fail
echo
"Collect coverage for error handling"
...
...
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