2017-11-18 19:35:03 +03:00
# SPDX-License-Identifier: LGPL-2.1+
#
2016-02-08 23:16:08 +03: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
After = systemd-remount-fs.service systemd-journald.socket
Requires = systemd-journald.socket
Before = shutdown.target
[Service]
ExecStart = -@rootlibexecdir@/systemd-coredump
2018-11-12 19:19:48 +03:00
IPAddressDeny = any
LockPersonality = yes
MemoryDenyWriteExecute = yes
2016-02-08 23:16:08 +03:00
Nice = 9
2018-11-12 19:19:48 +03:00
NoNewPrivileges = yes
2016-02-08 23:16:08 +03:00
OOMScoreAdjust = 500
2017-02-09 13:17:45 +03:00
PrivateDevices = yes
2016-02-08 23:16:08 +03:00
PrivateNetwork = yes
2018-11-12 19:19:48 +03:00
PrivateTmp = yes
2017-02-09 13:17:45 +03:00
ProtectControlGroups = yes
2018-11-12 19:19:48 +03:00
ProtectHome = yes
2017-02-09 13:17:45 +03:00
ProtectKernelModules = yes
2018-11-12 19:19:48 +03:00
ProtectKernelTunables = yes
ProtectSystem = strict
2017-02-09 13:17:45 +03:00
RestrictAddressFamilies = AF_UNIX
2018-11-12 19:19:48 +03:00
RestrictNamespaces = yes
RestrictRealtime = yes
RuntimeMaxSec = 5min
2017-08-02 11:35:11 +03:00
StateDirectory = systemd/coredump
2018-11-12 19:19:48 +03:00
SystemCallArchitectures = native
SystemCallErrorNumber = EPERM
SystemCallFilter = @system-service