polygraphene / DirtyPipe-Android

Dirty Pipe root exploit for Android (Pixel 6)
771 stars 130 forks source link

Some kernel compilation issues. #11

Closed Vxer-Lee closed 2 years ago

Vxer-Lee commented 2 years ago

Hello: I want to add some demo for reading and writing files in mymod.c, such as filp_open and kernel_read_file. I used the./build/build.sh file in your document and found an error: "ERROR: modpost: "kernel_read_file" [../google-modules/mymod/mymod.ko] undefined!" 。

I don't have any driver development decompression, thank you! image

polygraphene commented 2 years ago

Try to add this if didn't.

#include <linux/kernel_read_file.h>
Vxer-Lee commented 2 years ago

Thank you very much!