mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-09 09:57:26 +03:00
ReadOnlySystem= uses fs namespaces to mount /usr and /boot read-only for a service. ProtectedHome= uses fs namespaces to mount /home and /run/user inaccessible or read-only for a service. This patch also enables these settings for all our long-running services. Together they should be good building block for a minimal service sandbox, removing the ability for services to modify the operating system or access the user's private data.
21 lines
662 B
SYSTEMD
21 lines
662 B
SYSTEMD
# 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=Time & Date Service
|
|
Documentation=man:systemd-timedated.service(8) man:localtime(5)
|
|
Documentation=http://www.freedesktop.org/wiki/Software/systemd/timedated
|
|
|
|
[Service]
|
|
ExecStart=@rootlibexecdir@/systemd-timedated
|
|
BusName=org.freedesktop.timedate1
|
|
CapabilityBoundingSet=CAP_SYS_TIME
|
|
WatchdogSec=1min
|
|
PrivateTmp=yes
|
|
ReadOnlySystem=yes
|
|
ProtectedHome=yes
|