for xanmod kernel 5.8 the patch 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch is giving an error:
-> Applying patch 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch... patching file init/Kconfig Hunk #1 succeeded at 1153 (offset 35 lines). patching file kernel/fork.c Hunk #2 succeeded at 1867 (offset 83 lines). Hunk #3 succeeded at 2971 (offset 126 lines). patching file kernel/sysctl.c Hunk #1 FAILED at 110. Hunk #2 succeeded at 1882 (offset 1336 lines). 1 out of 2 hunks FAILED -- saving rejects to file kernel/sysctl.c.rej patching file kernel/user_namespace.c ==> ERROR: A failure occurred in prepare(). Aborting...
The rejection looks like this:
--- kernel/sysctl.c +++ kernel/sysctl.c @@ -110,6 +110,9 @@ extern int core_uses_pid; extern char core_pattern[]; extern unsigned int core_pipe_limit; #endif +#ifdef CONFIG_USER_NS +extern int unprivileged_userns_clone; +#endif extern int pid_max; extern int pid_max_min, pid_max_max; extern int percpu_pagelist_fraction;
Pinned Comments
anlorsp commented on 2024-07-13 17:07 (UTC) (edited on 2024-07-15 04:53 (UTC) by anlorsp)
Adding
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)
This package have several variables to enable/disable features.
Personally I'm running now xanmod kernel compiled with this:
Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):
Code involved: