shubham0d / Immutable-file-linux

A small fun project to protect a file from writing using ftrace hooking.
MIT License
23 stars 6 forks source link

Immutable-file-linux

A small fun project to make any file in linux system immutable/non writable by hooking sys_openat and sys_write system calls using ftrace.

Instructions

Reference for: https://nixhacker.com/hooking-syscalls-in-linux-using-ftrace