Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
297a3cf9
Unverified
Commit
297a3cf9
authored
3 years ago
by
Yurii Izorkin
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
templates/systemd/mastodon: enable sandbox mode (#15937)
parent
cbd0ee1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dist/mastodon-sidekiq.service
+27
-0
27 additions, 0 deletions
dist/mastodon-sidekiq.service
dist/mastodon-streaming.service
+27
-0
27 additions, 0 deletions
dist/mastodon-streaming.service
dist/mastodon-web.service
+27
-0
27 additions, 0 deletions
dist/mastodon-web.service
with
81 additions
and
0 deletions
dist/mastodon-sidekiq.service
+
27
−
0
View file @
297a3cf9
...
...
@@ -12,6 +12,33 @@ Environment="MALLOC_ARENA_MAX=2"
ExecStart
=
/home/mastodon/.rbenv/shims/bundle exec sidekiq -c 25
TimeoutSec
=
15
Restart
=
always
# Capabilities
CapabilityBoundingSet
=
# Security
NoNewPrivileges
=
true
# Sandboxing
ProtectSystem
=
strict
PrivateTmp
=
true
PrivateDevices
=
true
PrivateUsers
=
true
ProtectHostname
=
true
ProtectKernelLogs
=
true
ProtectKernelModules
=
true
ProtectKernelTunables
=
true
ProtectControlGroups
=
true
RestrictAddressFamilies
=
AF_INET
RestrictAddressFamilies
=
AF_INET6
RestrictAddressFamilies
=
AF_NETLINK
RestrictAddressFamilies
=
AF_UNIX
RestrictNamespaces
=
true
LockPersonality
=
true
RestrictRealtime
=
true
RestrictSUIDSGID
=
true
PrivateMounts
=
true
ProtectClock
=
true
# System Call Filtering
SystemCallArchitectures
=
native
SystemCallFilter
=
~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @reboot @resources @setuid @swap
[Install]
WantedBy
=
multi-user.target
This diff is collapsed.
Click to expand it.
dist/mastodon-streaming.service
+
27
−
0
View file @
297a3cf9
...
...
@@ -12,6 +12,33 @@ Environment="STREAMING_CLUSTER_NUM=1"
ExecStart
=
/usr/bin/node ./streaming
TimeoutSec
=
15
Restart
=
always
# Capabilities
CapabilityBoundingSet
=
# Security
NoNewPrivileges
=
true
# Sandboxing
ProtectSystem
=
strict
PrivateTmp
=
true
PrivateDevices
=
true
PrivateUsers
=
true
ProtectHostname
=
true
ProtectKernelLogs
=
true
ProtectKernelModules
=
true
ProtectKernelTunables
=
true
ProtectControlGroups
=
true
RestrictAddressFamilies
=
AF_INET
RestrictAddressFamilies
=
AF_INET6
RestrictAddressFamilies
=
AF_NETLINK
RestrictAddressFamilies
=
AF_UNIX
RestrictNamespaces
=
true
LockPersonality
=
true
RestrictRealtime
=
true
RestrictSUIDSGID
=
true
PrivateMounts
=
true
ProtectClock
=
true
# System Call Filtering
SystemCallArchitectures
=
native
SystemCallFilter
=
~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @reboot @resources @setuid @swap
[Install]
WantedBy
=
multi-user.target
This diff is collapsed.
Click to expand it.
dist/mastodon-web.service
+
27
−
0
View file @
297a3cf9
...
...
@@ -12,6 +12,33 @@ ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb
ExecReload
=
/bin/kill -SIGUSR1 $MAINPID
TimeoutSec
=
15
Restart
=
always
# Capabilities
CapabilityBoundingSet
=
# Security
NoNewPrivileges
=
true
# Sandboxing
ProtectSystem
=
strict
PrivateTmp
=
true
PrivateDevices
=
true
PrivateUsers
=
true
ProtectHostname
=
true
ProtectKernelLogs
=
true
ProtectKernelModules
=
true
ProtectKernelTunables
=
true
ProtectControlGroups
=
true
RestrictAddressFamilies
=
AF_INET
RestrictAddressFamilies
=
AF_INET6
RestrictAddressFamilies
=
AF_NETLINK
RestrictAddressFamilies
=
AF_UNIX
RestrictNamespaces
=
true
LockPersonality
=
true
RestrictRealtime
=
true
RestrictSUIDSGID
=
true
PrivateMounts
=
true
ProtectClock
=
true
# System Call Filtering
SystemCallArchitectures
=
native
SystemCallFilter
=
~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @reboot @resources @setuid @swap
[Install]
WantedBy
=
multi-user.target
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