2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2016-02-08 20:16:08 +00: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 14:24:23 +00:00
|
|
|
After=systemd-journald.socket
|
2016-02-08 20:16:08 +00:00
|
|
|
Requires=systemd-journald.socket
|
|
|
|
Before=shutdown.target
|
|
|
|
|
|
|
|
[Service]
|
2023-06-12 01:15:19 +00:00
|
|
|
ExecStart=-{{LIBEXECDIR}}/systemd-coredump
|
2018-11-12 16:19:48 +00:00
|
|
|
IPAddressDeny=any
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
2016-02-08 20:16:08 +00:00
|
|
|
Nice=9
|
2018-11-12 16:19:48 +00:00
|
|
|
NoNewPrivileges=yes
|
2016-02-08 20:16:08 +00:00
|
|
|
OOMScoreAdjust=500
|
2017-02-09 10:17:45 +00:00
|
|
|
PrivateDevices=yes
|
2016-02-08 20:16:08 +00:00
|
|
|
PrivateNetwork=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
PrivateTmp=yes
|
2017-02-09 10:17:45 +00:00
|
|
|
ProtectControlGroups=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectHome=yes
|
2019-02-18 22:30:12 +00:00
|
|
|
ProtectHostname=yes
|
2017-02-09 10:17:45 +00:00
|
|
|
ProtectKernelModules=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectKernelTunables=yes
|
2019-11-14 00:56:23 +00:00
|
|
|
ProtectKernelLogs=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectSystem=strict
|
2017-02-09 10:17:45 +00:00
|
|
|
RestrictAddressFamilies=AF_UNIX
|
2018-11-12 16:19:48 +00:00
|
|
|
RestrictRealtime=yes
|
2019-03-20 18:52:20 +00:00
|
|
|
RestrictSUIDSGID=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
RuntimeMaxSec=5min
|
2017-08-02 08:35:11 +00:00
|
|
|
StateDirectory=systemd/coredump
|
2018-11-12 16:19:48 +00:00
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallErrorNumber=EPERM
|
2021-11-21 17:05:28 +00:00
|
|
|
SystemCallFilter=@system-service @mount
|