Use ptrace to trap unlink*
syscall and do path validation to protect your files from sad unexpected unrecoverable deletion
Now only nrm rm /tmp/test
can be finely detected and blocked.
ALPHA STAGE, DO NOT USE IT UNLESS YOU KNOW WHAT YOU ARE DOING!
Run nrm -h
to view help of nrm part.
Any args after --
or started from the first non--
-prefixed arg are considered child commands and re-executed.
Currently no deletions are allowed
Install from crates.io: cargo install nrm
Build from source: cargo build --release
Features:
bigendian
: In case your device is (the rare) big endian
Copyright (c) 2022 myl7
SPDX-License-Identifier: Apache-2.0