summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2018-05-15 09:24:20 +0200
committerMichal Sekletar <msekleta@redhat.com>2018-08-02 13:10:15 +0200
commitf58c5ced373c2532b5cc44ba2e0c3a28b41472f2 (patch)
tree38cf152ca2136a8e0254b75054436b088e527c13 /units
parentb924c79720cc2bf2edf75fa3ff43bb4954fccf1f (diff)
downloadsystemd-f58c5ced373c2532b5cc44ba2e0c3a28b41472f2.tar.gz
Avoid /tmp being mounted as tmpfs without the user's will
Ensure PrivateTmp doesn't require tmpfs through tmp.mount, but rather adds an After relationship. rhel-only Resolves: #1578772
Diffstat (limited to 'units')
-rw-r--r--units/basic.target3
1 files changed, 2 insertions, 1 deletions
diff --git a/units/basic.target b/units/basic.target
index 4f44292249..8fc7c73ef2 100644
--- a/units/basic.target
+++ b/units/basic.target
@@ -19,4 +19,5 @@ After=sysinit.target sockets.target paths.target slices.target tmp.mount
# require /var and /var/tmp, but only add a Wants= type dependency on /tmp, as
# we support that unit being masked, and this should not be considered an error.
RequiresMountsFor=/var /var/tmp
-Wants=tmp.mount
+# RHEL-only: Disable /tmp on tmpfs.
+#Wants=tmp.mount