diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-20 04:16:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-20 04:16:39 +0100 |
commit | c2c13f2df42e0691aecabe3979ea81cd7faa35c7 (patch) | |
tree | 8a0930ab83eac1e5c10ccb0c8d41d615e21a4c51 /src/core/load-fragment.c | |
parent | b5640d824565ac4e305714598d4828de21ceaea1 (diff) |
unit: turn off mount propagation for udevd
Keep mounts done by udev rules private to udevd. Also, document how
MountFlags= may be used for this.
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r-- | src/core/load-fragment.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 1c7ac75dd8..fa4e931b23 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -1125,15 +1125,13 @@ int config_parse_exec_mount_flags(const char *unit, return log_oom(); if (streq(t, "shared")) - flags |= MS_SHARED; + flags = MS_SHARED; else if (streq(t, "slave")) - flags |= MS_SLAVE; + flags = MS_SLAVE; else if (streq(w, "private")) - flags |= MS_PRIVATE; + flags = MS_PRIVATE; else { - log_syntax(unit, LOG_ERR, filename, line, EINVAL, - "Failed to parse mount flag %s, ignoring: %s", - t, rvalue); + log_syntax(unit, LOG_ERR, filename, line, EINVAL, "Failed to parse mount flag %s, ignoring: %s", t, rvalue); return 0; } } |