Bug 1286242 - slaved udevd mnt namespace prevents rename of bind-mounted files.
slaved udevd mnt namespace prevents rename of bind-mounted files.
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: systemd-maint
Depends On:
Blocks: 1263648
  Show dependency treegraph
Reported: 2015-11-27 10:02 EST by Fabian Deutsch
Modified: 2017-11-01 20:05 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Fabian Deutsch 2015-11-27 10:02:57 EST
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):

How reproducible:

Steps to Reproduce:
1. See bug 1263648

Actual results:

Expected results:

Additional info:
Comment 1 Fabian Deutsch 2015-11-27 10:06:56 EST
PR available here:
Comment 2 Fabian Deutsch 2015-11-27 10:15:47 EST
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"

Note You need to log in before you can comment on or make changes to this bug.