|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
From 22b4881bf042aceaf079efec71447ef17aa7e913 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
From: Evgeny Vereshchagin <evvers@ya.ru>
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Date: Mon, 10 Apr 2017 14:20:17 +0300
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Subject: [PATCH] core: fix values of BindPaths and BindReadOnlyPaths
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
properties on 32-bit platforms (#5713)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
$ busctl get-property \
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
org.freedesktop.systemd1 \
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
/org/freedesktop/systemd1/unit/run_2dr471de87550554a6dbb165501c33c5dab_2eservice \
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
org.freedesktop.systemd1.Service BindReadOnlyPaths
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
a(ssbt) 1 "/etc" "/etc" false 9228635523571007488
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
The correct values are 0 and 16384
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
(cherry picked from commit c9b061085678a8b00cf3631b123378fc6104a56f)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
src/core/dbus-execute.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
index 7df4cab3f6..0454a28e12 100644
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
--- a/src/core/dbus-execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
+++ b/src/core/dbus-execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
@@ -710,7 +710,7 @@ static int property_get_bind_paths(
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
c->bind_mounts[i].source,
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
c->bind_mounts[i].destination,
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
c->bind_mounts[i].ignore_enoent,
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
- c->bind_mounts[i].recursive ? MS_REC : 0);
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
+ c->bind_mounts[i].recursive ? (uint64_t) MS_REC : (uint64_t) 0);
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
if (r < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
return r;
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
}
|