2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2011-06-15 13:37:39 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 22:20:58 +00:00
|
|
|
# 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
|
2011-06-15 13:37:39 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Locale Service
|
2020-09-29 06:03:10 +00:00
|
|
|
Documentation=man:systemd-localed.service(8)
|
|
|
|
Documentation=man:locale.conf(5)
|
|
|
|
Documentation=man:vconsole.conf(5)
|
|
|
|
Documentation=man:org.freedesktop.locale1(5)
|
2011-06-15 13:37:39 +00:00
|
|
|
|
|
|
|
[Service]
|
2024-01-09 11:59:02 +00:00
|
|
|
Type=notify
|
2011-06-15 13:37:39 +00:00
|
|
|
BusName=org.freedesktop.locale1
|
2016-08-26 11:23:27 +00:00
|
|
|
CapabilityBoundingSet=
|
2023-06-12 01:15:19 +00:00
|
|
|
ExecStart={{LIBEXECDIR}}/systemd-localed
|
2018-11-12 16:19:48 +00:00
|
|
|
IPAddressDeny=any
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
2014-03-19 15:45:28 +00:00
|
|
|
PrivateDevices=yes
|
2014-03-19 22:08:39 +00:00
|
|
|
PrivateNetwork=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
PrivateTmp=yes
|
2020-08-06 12:50:38 +00:00
|
|
|
ProtectProc=invisible
|
2016-08-26 11:23:27 +00:00
|
|
|
ProtectControlGroups=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectHome=yes
|
2019-02-18 22:30:12 +00:00
|
|
|
ProtectHostname=yes
|
2020-08-06 12:50:38 +00:00
|
|
|
ProtectKernelLogs=yes
|
2017-02-09 10:09:50 +00:00
|
|
|
ProtectKernelModules=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectKernelTunables=yes
|
|
|
|
ProtectSystem=strict
|
2021-05-16 18:13:14 +00:00
|
|
|
ReadWritePaths=/etc
|
|
|
|
{% if HAVE_LOCALEGEN %}
|
|
|
|
ReadWritePaths=/usr/lib/locale
|
|
|
|
{% endif %}
|
2016-08-26 11:23:27 +00:00
|
|
|
RestrictAddressFamilies=AF_UNIX
|
2018-11-12 16:19:48 +00:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
2019-03-20 18:52:20 +00:00
|
|
|
RestrictSUIDSGID=yes
|
2017-02-08 21:32:37 +00:00
|
|
|
SystemCallArchitectures=native
|
2018-11-12 16:19:48 +00:00
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
SystemCallFilter=@system-service
|
2021-05-16 09:55:36 +00:00
|
|
|
{{SERVICE_WATCHDOG}}
|