Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
apertis-website
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cedric Müller
apertis-website
Commits
ac1090c7
Commit
ac1090c7
authored
3 years ago
by
Cedric Müller
Committed by
Martyn Welch
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
First idea to contribute selection of systemd hardening parameters.
parent
7b9fa8ac
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
content/guides/hardening.md
+12
-0
12 additions, 0 deletions
content/guides/hardening.md
with
12 additions
and
0 deletions
content/guides/hardening.md
100644 → 100755
+
12
−
0
View file @
ac1090c7
...
...
@@ -280,6 +280,18 @@ sandboxing:
-
systemd provides
[
sandboxing functionality
](
https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Sandboxing
)
which can be used to alter the environment in which the process is run.
From the linked set of systemd sandboxing options, the following
are interesting and grouped by complexity to apply:
-
Try first:
``ProtectHome``
,
``NoNewPrivileges``
,
``PrivateTmp``
,
``AppArmorProfile``
,
``ProtectControlGroups``
,
``ProtectKernelLogs``
,
``ProtectKernelTunables``
,
``ProtectKernelModules``
,
``ProtectSystem``
-
Better sandboxing, but more testing required:
``InaccessiblePaths``
,
``ReadOnlyPaths``
,
``PrivateDevices``
,
``LockPersonality``
-
Hard to apply:
``SystemCallFilter``
,
``RestrictSUIDGID``
,
``MemoryDenyWriteExecute``
It is always necessary to do properly testing of the sandboxed application.
# Network and firewalls
...
...
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