linux: Fix request-key for 4.4 and 4.9
This commit is contained in:
parent
e8fc6c06f9
commit
baa243d508
@ -11,6 +11,11 @@
|
|||||||
patch = ./request-key-helper.patch;
|
patch = ./request-key-helper.patch;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
request_key_helper_updated =
|
||||||
|
{ name = "request-key-helper-updated";
|
||||||
|
patch = ./request-key-helper-updated.patch;
|
||||||
|
};
|
||||||
|
|
||||||
p9_fixes =
|
p9_fixes =
|
||||||
{ name = "p9-fixes";
|
{ name = "p9-fixes";
|
||||||
patch = ./p9-fixes.patch;
|
patch = ./p9-fixes.patch;
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/security/keys/request_key.c b/security/keys/request_key.c
|
||||||
|
index 88172c163953..4da74a1eebb2 100644
|
||||||
|
--- a/security/keys/request_key.c
|
||||||
|
+++ b/security/keys/request_key.c
|
||||||
|
@@ -161,7 +161,7 @@ static int call_sbin_request_key(struct key_construction *cons,
|
||||||
|
|
||||||
|
/* set up the argument list */
|
||||||
|
i = 0;
|
||||||
|
- argv[i++] = "/sbin/request-key";
|
||||||
|
+ argv[i++] = "/run/current-system/sw/bin/request-key";
|
||||||
|
argv[i++] = (char *) op;
|
||||||
|
argv[i++] = key_str;
|
||||||
|
argv[i++] = uid_str;
|
@ -16221,7 +16221,7 @@ in
|
|||||||
linux_4_4 = callPackage ../os-specific/linux/kernel/linux-4.4.nix {
|
linux_4_4 = callPackage ../os-specific/linux/kernel/linux-4.4.nix {
|
||||||
kernelPatches =
|
kernelPatches =
|
||||||
[ kernelPatches.bridge_stp_helper
|
[ kernelPatches.bridge_stp_helper
|
||||||
kernelPatches.request_key_helper
|
kernelPatches.request_key_helper_updated
|
||||||
kernelPatches.cpu-cgroup-v2."4.4"
|
kernelPatches.cpu-cgroup-v2."4.4"
|
||||||
kernelPatches.modinst_arg_list_too_long
|
kernelPatches.modinst_arg_list_too_long
|
||||||
# https://github.com/NixOS/nixpkgs/issues/42755
|
# https://github.com/NixOS/nixpkgs/issues/42755
|
||||||
@ -16235,7 +16235,7 @@ in
|
|||||||
linux_4_9 = callPackage ../os-specific/linux/kernel/linux-4.9.nix {
|
linux_4_9 = callPackage ../os-specific/linux/kernel/linux-4.9.nix {
|
||||||
kernelPatches =
|
kernelPatches =
|
||||||
[ kernelPatches.bridge_stp_helper
|
[ kernelPatches.bridge_stp_helper
|
||||||
kernelPatches.request_key_helper
|
kernelPatches.request_key_helper_updated
|
||||||
kernelPatches.cpu-cgroup-v2."4.9"
|
kernelPatches.cpu-cgroup-v2."4.9"
|
||||||
kernelPatches.modinst_arg_list_too_long
|
kernelPatches.modinst_arg_list_too_long
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user