chiark / gitweb /
core: add new ReadOnlySystem= and ProtectedHome= settings for service units
authorLennart Poettering <lennart@poettering.net>
Tue, 3 Jun 2014 21:41:44 +0000 (23:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 Jun 2014 21:57:51 +0000 (23:57 +0200)
commit417116f23432073162ebfcb286a7800846482eed
tree8e6076d15760c8079deb32eff461e0cc3168fa61
parent85b5673b337048fa881a5afb1d00d1a7b95950fb
core: add new ReadOnlySystem= and ProtectedHome= settings for service units

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 files changed:
man/systemd.exec.xml
src/core/dbus-execute.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/namespace.c
src/core/namespace.h
src/test/test-ns.c
units/systemd-hostnamed.service.in
units/systemd-journal-gatewayd.service.in
units/systemd-journald.service.in
units/systemd-localed.service.in
units/systemd-logind.service.in
units/systemd-machined.service.in
units/systemd-networkd.service.in
units/systemd-resolved.service.in
units/systemd-timedated.service.in
units/systemd-timesyncd.service.in
units/systemd-udevd.service.in