we are able to parse str to int in the kernel

This commit is contained in:
Sebastian Moser
2024-08-16 15:37:45 +02:00
parent 84c973d392
commit 349b792c18
7 changed files with 205 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
{ stdenv
, lib
, fetchFromGitHub
, kernel
, kmod
}:
# from: https://ortiz.sh/linux/2020/07/05/UNKILLABLE.html
stdenv.mkDerivation rec {
name = "unkillableKernelModule-${version}-${kernel.version}";
version = "0.1";
src = ./.;
hardeningDisable = [ "pic" "format" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = [
"KERNELRELEASE=${kernel.modDirVersion}"
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"INSTALL_MOD_PATH=$(out)"
];
meta = with lib; {
description = "A kernel module that makes a char-device /dev/unkillable, from which you can read($your_pid) from, which then makes your process unkillable. code from: https://ortiz.sh/linux/2020/07/05/UNKILLABLE.html";
homepage = "https://ortiz.sh/linux/2020/07/05/UNKILLABLE.html";
license = licenses.gpl2;
maintainers = [ ];
platforms = platforms.linux;
};
}