From 96d9204f86442cbc6e4918f22fa26b98ced37eb4 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 28 Jan 2016 14:38:59 +0100 Subject: [PATCH] helper: Update the error messages to not refer to --disable-userns --- common/xdg-app-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xdg-app-helper.c b/common/xdg-app-helper.c index b81179a7..0e5c163c 100644 --- a/common/xdg-app-helper.c +++ b/common/xdg-app-helper.c @@ -2280,7 +2280,7 @@ main (int argc, if (!is_privileged) { if (errno == EINVAL) - die ("Creating new namespace failed, likely because the kernel does not support user namespaces. Recompile xdg-app with --disable-userns, or switch to a kernel with user namespace support."); + die ("Creating new namespace failed, likely because the kernel does not support user namespaces. Give the xdg-app-helper setuid root or cap_sys_admin+ep rights, or switch to a kernel with user namespace support."); else if (errno == EPERM) 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'."); }