Summary: | With PrivateTmp enabled, the service doesn't see any changes in mounts | ||
---|---|---|---|
Product: | systemd | Reporter: | Jedrzej Jajor <jedrzej> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | major | ||
Priority: | medium | CC: | jedrzej |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Jedrzej Jajor
2012-07-13 07:32:47 UTC
Hmm, your root directory must probably be remounted shared: mount --make-shared / Does that make things work? Thank you for the suggestion. Indeed, marking / and /var did help, but only until next reboot. Additionally, "mount --make-shared" must be called after filesystems were mounted, but before httpd.service was started. Is there any option to permanently mark a mountpoint as "shared"? I could't find any in fstab. Or is it possible only with another script/service which would start before httpd.service? I also found an option to make "slave" mount (--make-slave). From the docs: "When a slave mount is created, any mount within the original mount point is reflected in it". Maybe systemd should mark the mounts for services with PrivateTmp=true as slaves, so that any subsequent mounts within original filesystems would be reflected for the services? Ultimately the kernel should be fixed to allow the shared setting to be specified like any other mount option, and we can just list it in fstab. systemd 189 will now make the entire hierarchy shared early at boot. That should fix the issue. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.