namespace: rework namespace support
- don't use pivot_root() anymore, just reuse root hierarchy - first create all mounts, then mark them read-only so that we get the right behaviour when people want writable mounts inside of read-only mounts - don't pass invalid combinations of MS_ constants to the kernel
This commit is contained in:
+2
-1
@@ -3011,7 +3011,8 @@ unsigned long long random_ull(void) {
|
||||
uint64_t ull;
|
||||
ssize_t r;
|
||||
|
||||
if ((fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY)) < 0)
|
||||
fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
|
||||
if (fd < 0)
|
||||
goto fallback;
|
||||
|
||||
r = loop_read(fd, &ull, sizeof(ull), true);
|
||||
|
||||
Reference in New Issue
Block a user