forked from lix-project/lix
change warn() to notice()
This commit is contained in:
parent
c8c6203c2c
commit
5f51539f88
|
@ -861,17 +861,17 @@ void LocalDerivationGoal::startBuilder()
|
||||||
if (settings.sandboxFallback)
|
if (settings.sandboxFallback)
|
||||||
_exit(1);
|
_exit(1);
|
||||||
if (!userNamespacesEnabled && errno==EPERM)
|
if (!userNamespacesEnabled && errno==EPERM)
|
||||||
warn("user namespaces appear to be disabled; they are required for sandboxing; check /proc/sys/user/max_user_namespaces");
|
notice("user namespaces appear to be disabled; they are required for sandboxing; check /proc/sys/user/max_user_namespaces");
|
||||||
if (userNamespacesEnabled) {
|
if (userNamespacesEnabled) {
|
||||||
Path procSysKernelUnprivilegedUsernsClone = "/proc/sys/kernel/unprivileged_userns_clone";
|
Path procSysKernelUnprivilegedUsernsClone = "/proc/sys/kernel/unprivileged_userns_clone";
|
||||||
if (pathExists(procSysKernelUnprivilegedUsernsClone)
|
if (pathExists(procSysKernelUnprivilegedUsernsClone)
|
||||||
&& trim(readFile(procSysKernelUnprivilegedUsernsClone)) == "0") {
|
&& trim(readFile(procSysKernelUnprivilegedUsernsClone)) == "0") {
|
||||||
warn("user namespaces appear to be disabled; they are required for sandboxing; check /proc/sys/kernel/unprivileged_userns_clone");
|
notice("user namespaces appear to be disabled; they are required for sandboxing; check /proc/sys/kernel/unprivileged_userns_clone");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Path procSelfNsUser = "/proc/self/ns/user";
|
Path procSelfNsUser = "/proc/self/ns/user";
|
||||||
if (!pathExists(procSelfNsUser))
|
if (!pathExists(procSelfNsUser))
|
||||||
warn("/proc/self/ns/user does not exist; your kernel was likely built without CONFIG_USER_NS=y, which is required for sandboxing");
|
notice("/proc/self/ns/user does not exist; your kernel was likely built without CONFIG_USER_NS=y, which is required for sandboxing");
|
||||||
/* Mention sandbox-fallback in the error message so the user
|
/* Mention sandbox-fallback in the error message so the user
|
||||||
knows that having it disabled contributed to the
|
knows that having it disabled contributed to the
|
||||||
unrecoverability of this failure */
|
unrecoverability of this failure */
|
||||||
|
|
Loading…
Reference in a new issue