final (hopefully) fixes

This commit is contained in:
Sebastian Moser
2024-08-16 15:49:38 +02:00
parent 349b792c18
commit 748b7e4aa1
3 changed files with 28 additions and 11 deletions

View File

@@ -7,6 +7,8 @@ in stdenv.mkDerivation {
src = ./.;
# Use $CC as it allows for stdenv to reference the correct C compiler
# i cant get this to not trigger buffer oferflow protection on the read() call with the pid
# so let mod the kernel module, to be able to 'echo $pid > /dev/unkillable'
buildPhase = ''
gcc -fno-stack-protector -D_FORTIFY_SOURCE=0 read-helper.c -o read-helper
'';