xbps-uchroot: mount sys/dev recursively to access to /dev/pts (thanks chris2).

This commit is contained in:
Juan RP 2014-11-05 15:57:21 +01:00
parent 42bbc60154
commit 578c3add0c

View File

@ -122,7 +122,7 @@ bindmount(uid_t ruid, const char *chrootdir, const char *dir, const char *dest)
if (fsuid_chdir(ruid, dir) == -1) if (fsuid_chdir(ruid, dir) == -1)
die("Couldn't chdir to %s", dir); 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); die("Failed to bind mount %s at %s", dir, mountdir);
} }