2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 19:35:03 +03:00
#
2011-06-15 17:37:39 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04: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 17:37:39 +04:00
# (at your option) any later version.
[Unit]
Description = Locale Service
2020-09-29 09:03:10 +03: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 17:37:39 +04:00
[Service]
BusName = org.freedesktop.locale1
2016-08-26 14:23:27 +03:00
CapabilityBoundingSet =
2021-05-16 12:55:36 +03:00
ExecStart = {{ROOTLIBEXECDIR}}/systemd-localed
2018-11-12 19:19:48 +03:00
IPAddressDeny = any
LockPersonality = yes
MemoryDenyWriteExecute = yes
NoNewPrivileges = yes
2014-03-19 19:45:28 +04:00
PrivateDevices = yes
2014-03-20 02:08:39 +04:00
PrivateNetwork = yes
2018-11-12 19:19:48 +03:00
PrivateTmp = yes
2020-08-06 15:50:38 +03:00
ProtectProc = invisible
2016-08-26 14:23:27 +03:00
ProtectControlGroups = yes
2018-11-12 19:19:48 +03:00
ProtectHome = yes
2019-02-19 01:30:12 +03:00
ProtectHostname = yes
2020-08-06 15:50:38 +03:00
ProtectKernelLogs = yes
2017-02-09 13:09:50 +03:00
ProtectKernelModules = yes
2018-11-12 19:19:48 +03:00
ProtectKernelTunables = yes
ProtectSystem = strict
2021-05-16 21:13:14 +03:00
ReadWritePaths = /etc
{ % i f H A V E _ L O C A L E G E N % }
ReadWritePaths = /usr/lib/locale
{ % e n d i f % }
2016-08-26 14:23:27 +03:00
RestrictAddressFamilies = AF_UNIX
2018-11-12 19:19:48 +03:00
RestrictNamespaces = yes
RestrictRealtime = yes
2019-03-20 21:52:20 +03:00
RestrictSUIDSGID = yes
2017-02-09 00:32:37 +03:00
SystemCallArchitectures = native
2018-11-12 19:19:48 +03:00
SystemCallErrorNumber = EPERM
SystemCallFilter = @system-service
2021-05-16 12:55:36 +03:00
{ { S E R V I C E _ W A T C H D O G } }