diff options
author | Simon McVittie <smcv@collabora.com> | 2022-10-03 11:28:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 11:28:20 +0100 |
commit | 020a9eef6fcaff63187eba15b0bb47339073cd9a (patch) | |
tree | 00f3a3c991a6cdcd79bbbcf784c0d114044cea42 | |
parent | efbcdba68c587be77d614a30d697e99e602285b2 (diff) | |
parent | a2b58048b9d850f67d27f1f62db2e6bacf3f4253 (diff) | |
download | bubblewrap-020a9eef6fcaff63187eba15b0bb47339073cd9a.tar.gz |
Merge pull request #487 from smcv/better-enospc-message
Improve error message when clone() fails with ENOSPC
-rw-r--r-- | bubblewrap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bubblewrap.c b/bubblewrap.c index b1e5884..1d9f9ad 100644 --- a/bubblewrap.c +++ b/bubblewrap.c @@ -2793,6 +2793,9 @@ main (int argc, die ("No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'."); } + if (errno == ENOSPC) + die ("Creating new namespace failed: nesting depth or /proc/sys/user/max_*_namespaces exceeded (ENOSPC)"); + die_with_error ("Creating new namespace failed"); } |