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
23f67f24
Commit
23f67f24
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Checking for ctrl-alt-del link
parent
2fd24df9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-utils-setup
+7
-0
7 additions, 0 deletions
src/freedombone-utils-setup
tests/check-ctrl-alt-del.sh
+5
-4
5 additions, 4 deletions
tests/check-ctrl-alt-del.sh
with
12 additions
and
4 deletions
src/freedombone-utils-setup
+
7
−
0
View file @
23f67f24
...
...
@@ -424,6 +424,10 @@ function set_sticky_bits {
done
}
function
disable_ctrl_alt_del
{
ln
-sf
/dev/null /etc/systemd/system/ctrl-alt-del.target
}
function
lockdown_permissions
{
# All commands owned by root
if
[
-d
/bin
]
;
then
...
...
@@ -541,6 +545,9 @@ function setup_utils {
read_config_param
"PROJECT_REPO"
write_config_param
"PROJECT_REPO"
"
$PROJECT_REPO
"
function_check disable_ctrl_alt_del
disable_ctrl_alt_del
function_check dummy_nologin_command
dummy_nologin_command
...
...
This diff is collapsed.
Click to expand it.
tests/check-ctrl-alt-del.sh
+
5
−
4
View file @
23f67f24
#!/bin/bash
if
[
-f
/etc/systemd/system/ctrl-alt-del.target
]
;
then
if
!
ls
-l
/etc/systemd/system/ctrl-alt-del.target |
grep
"/dev/null"
;
then
exit
1
fi
else
ctrl_alt_del
=
$(
ls
-l
/etc/systemd/system/ctrl-alt-del.target
)
if
[[
"
$ctrl_alt_del
"
!=
*
"/dev/null"
]]
;
then
exit
1
fi
else
exit
1
fi
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