90cf2cebb2
Resolves: RHEL-44417,RHEL-71409
24 lines
842 B
Diff
24 lines
842 B
Diff
From 038ea755196a3270fc5a8074ee5a3e55fd5b88be Mon Sep 17 00:00:00 2001
|
|
From: Jan Synacek <jsynacek@redhat.com>
|
|
Date: Tue, 15 May 2018 09:24:20 +0200
|
|
Subject: [PATCH] Avoid /tmp being mounted as tmpfs without the user's will
|
|
|
|
rhel-only: policy
|
|
|
|
Related: RHEL-40924
|
|
---
|
|
units/basic.target | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/units/basic.target b/units/basic.target
|
|
index d8cdd5ac14..9eae0782a2 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
|