You are not logged in.

#1 2021-02-26 17:42:45

u666sa
Member
Registered: 2020-08-01
Posts: 69

linux-xanmod-lts54 - ERROR: A failure occurred in prepare()

Guys, what am I doing wrong? I posted in AUR comment that it does not compile, provided error, maintainer replied saying it is fixed. I tried again, it is not fixed. I'm confused. Point me to the right direction.

PROBLEM:  When building linux-xanmod-lts54 from AUR (plus it's headers) I get error.

8Tt1ryw.png

Here is the complete paste -- https://paste.ubuntu.com/p/k6VswFBm5s/

I have this feeling that I am being jerked around. He told me he fixed it, but in reality he did not fix it.
Help me out please, I need the LTS kernel for bluetooth on my wifi card to work.

Offline

#2 2021-02-26 18:21:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: linux-xanmod-lts54 - ERROR: A failure occurred in prepare()

They probably forgot to push their changes.

Offline

#3 2021-02-26 22:42:51

loqs
Member
Registered: 2014-03-06
Posts: 17,377

Re: linux-xanmod-lts54 - ERROR: A failure occurred in prepare()

You could remove the hunks xanmod already contains so the patch applies again:

From a8d736bad70d4062a14c29bdcbed71bef7b575f5 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Mon, 16 Sep 2019 04:53:20 +0200
Subject: [PATCH 01/15] ZEN: Add sysctl and CONFIG to disallow unprivileged
 CLONE_NEWUSER

Our default behavior continues to match the vanilla kernel.
---
 init/Kconfig            | 16 ++++++++++++++++
 kernel/user_namespace.c |  3 +++
 2 file changed, 19 insertions(+)

diff --git a/init/Kconfig b/init/Kconfig
index 747b051..d89391f 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1084,6 +1084,22 @@ config USER_NS
 
 	  If unsure, say N.
 
+config USER_NS_UNPRIVILEGED
+       bool "Allow unprivileged users to create namespaces"
+       default y
+       depends on USER_NS
+       help
+         When disabled, unprivileged users will not be able to create
+         new namespaces. Allowing users to create their own namespaces
+         has been part of several recent local privilege escalation
+         exploits, so if you need user namespaces but are
+         paranoid^Wsecurity-conscious you want to disable this.
+
+         This setting can be overridden at runtime via the
+         kernel.unprivileged_userns_clone sysctl.
+
+         If unsure, say Y.
+
 config PID_NS
 	bool "PID Namespaces"
 	default y
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index faa9c7f..c36ecd1 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -22,7 +22,11 @@
 #include <linux/sort.h>
 
 /* sysctl */
+#ifdef CONFIG_USER_NS_UNPRIVILEGED
 int unprivileged_userns_clone = 1;
+#else
+int unprivileged_userns_clone;
+#endif
 
 static struct kmem_cache *user_ns_cachep __read_mostly;
 static DEFINE_MUTEX(userns_state_mutex);

Edit:
Add back change I missed in kernel/user_namespace.c.

Last edited by loqs (2021-02-26 23:18:47)

Offline

#4 2021-02-27 10:38:03

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,923

Re: linux-xanmod-lts54 - ERROR: A failure occurred in prepare()

last change

112 min.	Removed use_ns	Joan Figueras

.

Try building again.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Online

#5 2021-02-27 10:51:06

u666sa
Member
Registered: 2020-08-01
Posts: 69

Re: linux-xanmod-lts54 - ERROR: A failure occurred in prepare()

Yea, it's building right now, no error in prepare, so it's going to finish with build. Problem solved.

Offline

Board footer

Powered by FluxBB