Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
95702deb
Commit
95702deb
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
stig tests option to lockdown permissions
parent
a0950a20
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-tests
+11
-2
11 additions, 2 deletions
src/freedombone-tests
with
11 additions
and
2 deletions
src/freedombone-tests
+
11
−
2
View file @
95702deb
...
...
@@ -32,6 +32,7 @@ PROJECT_NAME='freedombone'
export
TEXTDOMAIN
=
${
PROJECT_NAME
}
-tests
export
TEXTDOMAINDIR
=
"/usr/share/locale"
source
/usr/share/
${
PROJECT_NAME
}
/utils/
${
PROJECT_NAME
}
-utils-setup
# Whether to run STIG tests
RUN_STIG
=
...
...
@@ -45,7 +46,7 @@ function show_help {
echo
''
echo
$'Runs tests on the system'
echo
''
echo
$' --stig [yes|no
]
Run STIG tests'
echo
$' --stig [yes|no
|fix]
Run STIG tests'
echo
$' --help Show help'
echo
''
exit
0
...
...
@@ -130,6 +131,13 @@ function stig_spinner {
wait
$1
}
function
fix_stig
{
if
[[
$RUN_STIG
!=
'fix'
]]
;
then
return
fi
lockdown_permissions
}
function
test_stig
{
if
[
!
$RUN_STIG
]
;
then
return
...
...
@@ -1125,7 +1133,7 @@ do
if
[[
"
$1
"
==
'showall'
]]
;
then
SHOW_ALL_TESTS
=
1
fi
RUN_STIG
=
1
RUN_STIG
=
"
$1
"
;;
*
)
# unknown option
...
...
@@ -1140,6 +1148,7 @@ fi
test_app_functions
test_unique_onion_ports
fix_stig
test_stig
if
[
!
$RUN_STIG
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment