26 lines
859 B
Diff
26 lines
859 B
Diff
From 578c3add0c253fe122703783392a5cc4d6fa0e6b Mon Sep 17 00:00:00 2001
|
|
From: Juan RP <xtraeme@gmail.com>
|
|
Date: Wed, 5 Nov 2014 15:57:21 +0100
|
|
Subject: [PATCH] xbps-uchroot: mount sys/dev recursively to access to /dev/pts
|
|
(thanks chris2).
|
|
|
|
---
|
|
bin/xbps-uchroot/main.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/bin/xbps-uchroot/main.c b/bin/xbps-uchroot/main.c
|
|
index e03b4ea..de87308 100644
|
|
--- bin/xbps-uchroot/main.c
|
|
+++ bin/xbps-uchroot/main.c
|
|
@@ -122,7 +122,7 @@ bindmount(uid_t ruid, const char *chrootdir, const char *dir, const char *dest)
|
|
|
|
if (fsuid_chdir(ruid, dir) == -1)
|
|
die("Couldn't chdir to %s", dir);
|
|
- if (mount(".", mountdir, NULL, MS_BIND|MS_PRIVATE, NULL) == -1)
|
|
+ if (mount(".", mountdir, NULL, MS_BIND|MS_REC|MS_PRIVATE, NULL) == -1)
|
|
die("Failed to bind mount %s at %s", dir, mountdir);
|
|
}
|
|
|
|
--
|
|
2.1.3
|
|
|