2017-11-18 17:35:03 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
2016-02-08 21:16:08 +01:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Process Core Dump
|
|
|
|
Documentation=man:systemd-coredump(8)
|
|
|
|
DefaultDependencies=no
|
|
|
|
Conflicts=shutdown.target
|
2020-04-08 16:24:23 +02:00
|
|
|
After=systemd-journald.socket
|
2016-02-08 21:16:08 +01:00
|
|
|
Requires=systemd-journald.socket
|
|
|
|
Before=shutdown.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=-@rootlibexecdir@/systemd-coredump
|
2018-11-12 17:19:48 +01:00
|
|
|
IPAddressDeny=any
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
2016-02-08 21:16:08 +01:00
|
|
|
Nice=9
|
2018-11-12 17:19:48 +01:00
|
|
|
NoNewPrivileges=yes
|
2016-02-08 21:16:08 +01:00
|
|
|
OOMScoreAdjust=500
|
2017-02-09 11:17:45 +01:00
|
|
|
PrivateDevices=yes
|
2016-02-08 21:16:08 +01:00
|
|
|
PrivateNetwork=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
PrivateTmp=yes
|
2017-02-09 11:17:45 +01:00
|
|
|
ProtectControlGroups=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectHome=yes
|
2019-02-18 23:30:12 +01:00
|
|
|
ProtectHostname=yes
|
2017-02-09 11:17:45 +01:00
|
|
|
ProtectKernelModules=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectKernelTunables=yes
|
2019-11-14 01:56:23 +01:00
|
|
|
ProtectKernelLogs=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectSystem=strict
|
2017-02-09 11:17:45 +01:00
|
|
|
RestrictAddressFamilies=AF_UNIX
|
2018-11-12 17:19:48 +01:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
2019-03-20 19:52:20 +01:00
|
|
|
RestrictSUIDSGID=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
RuntimeMaxSec=5min
|
2017-08-02 10:35:11 +02:00
|
|
|
StateDirectory=systemd/coredump
|
2018-11-12 17:19:48 +01:00
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
SystemCallFilter=@system-service
|