[2/5] mount: Consider EBUSY binfmt_misc mount return as error

Submitted by Kirill Tkhai on July 15, 2017, 3:25 p.m.

Details

Message ID 150013231314.12956.2871729199186004663.stgit@localhost.localdomain
State New
Series "binfmt_misc: Switch to dumpee user_ns before mount"
Headers show

Commit Message

Kirill Tkhai July 15, 2017, 3:25 p.m.
Here are impossible second binfmt_misc as we already
scanned all mounted partitions.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 criu/mount.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/mount.c b/criu/mount.c
index f258caaf5..0eaa9c67f 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -3266,7 +3266,7 @@  int collect_mnt_namespaces(bool for_dump)
 						  "binfmt_misc");
 			if (ret == -EPERM)
 				pr_info("Can't mount binfmt_misc: EPERM. Running in user_ns?\n");
-			else if (ret < 0 && ret != -EBUSY && ret != -ENODEV && ret != -ENOENT) {
+			else if (ret < 0 && ret != -ENODEV && ret != -ENOENT) {
 				pr_err("Can't mount binfmt_misc: %d %s\n", ret, strerror(-ret));
 				goto err;
 			} else if (ret == 0) {