[systemd-bugs] [Bug 56203] New: Race condition for service dependent on mount
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Oct 19 13:26:48 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=56203
Priority: medium
Bug ID: 56203
Assignee: systemd-bugs at lists.freedesktop.org
Summary: Race condition for service dependent on mount
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: major
Classification: Unclassified
OS: Linux (All)
Reporter: david at davidstrauss.net
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: general
Product: systemd
If a service depends on a mount, systemd doesn't properly wait for the mount to
complete before starting the service. This creates race conditions where the
service may write to the mount directory before the mount is active, which can
stop the mount from even completing successfully because the mount directory
isn't empty. We might be able to stop the writes through permissions on the
mount directory, but the writes would still fail.
The cleanest solution to this seems to be "notify" integration into the mount
utility so it tells systemd that the mount is complete or waiting for the mount
request to complete in some other way.
Part of why we use this dependency is to perform the mount before "forking" the
file system namespace for the dependent service. This allows the dependent
service file system namespace to not propagate further mounts from the main
file system.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20121019/41c6a114/attachment.html>
More information about the systemd-bugs
mailing list