Change EPERM error message to show Debian-specific information

Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name Change-EPERM-error-message-to-show-Debian-specific-inform.patch
This commit is contained in:
Simon McVittie 2021-01-01 15:03:27 +00:00 committed by luoyaoming
parent 20b859454d
commit 8b1ff8adce
1 changed files with 1 additions and 1 deletions

View File

@ -2905,7 +2905,7 @@ main (int argc,
if (errno == EINVAL) if (errno == EINVAL)
die ("Creating new namespace failed, likely because the kernel does not support user namespaces. bwrap must be installed setuid on such systems."); die ("Creating new namespace failed, likely because the kernel does not support user namespaces. bwrap must be installed setuid on such systems.");
else if (errno == EPERM && !is_privileged) else if (errno == EPERM && !is_privileged)
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'."); die ("No permissions to create new namespace, likely because the kernel does not allow non-privileged user namespaces. See <https://deb.li/bubblewrap> or <file:///usr/share/doc/bubblewrap/README.Debian.gz>.");
} }
if (errno == ENOSPC) if (errno == ENOSPC)