Red Hat Bugzilla – Bug 1286242
slaved udevd mnt namespace prevents rename of bind-mounted files.
Last modified: 2017-11-01 20:05:44 EDT
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):
Steps to Reproduce:
1. See bug 1263648
PR available here:
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"