Bug 1286242

Summary: slaved udevd mnt namespace prevents rename of bind-mounted files.
Product: Red Hat Enterprise Linux 7 Reporter: Fabian Deutsch <fdeutsch>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: systemd-maint-list
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-29 13:17:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1263648    

Description Fabian Deutsch 2015-11-27 15:02:57 UTC
Description of problem:
In RHEV-H we are using a tmpfs'ed /etc, wthint this tmpfs'ed etc we are using bind.mounts to bind-mount in config files (which reside on a writable partition elsewhere).
Once udevd comes up, these files ran not be renamed anymore - even if unmounted - because udevd is keeping the bind-mounts in it's mnt namespace.

Version-Release number of selected component (if applicable):
systemd-219-19.el7

How reproducible:
Always

Steps to Reproduce:
1. See bug 1263648
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Fabian Deutsch 2015-11-27 15:06:56 UTC
PR available here:
https://github.com/systemd/systemd/pull/2050

Comment 2 Fabian Deutsch 2015-11-27 15:15:47 UTC
How to reproduce:

1. tmpfs on /tmp
2. touch /tmp/shadow
3. mount --bind /etc/shadow /tmp/shadow
4. systemctl restart systemd-udevd.service
5. umount /tmp/shadow
6. mv /tmp/shadow /tmp/shadow-

6 fails with "mv: cannot move 'shadow' to 'shadow-': Device or resource busy"

Comment 4 Lukáš Nykrýn 2018-10-29 13:17:15 UTC

*** This bug has been marked as a duplicate of bug 1432211 ***