Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
/ nrm Public archive

Use ptrace to trap unlink* syscall and do path validation to protect your files from sad unexpected unrecoverable deletion

License

Notifications You must be signed in to change notification settings

myl7/nrm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nrm

Use ptrace to trap unlink* syscall and do path validation to protect your files from sad unexpected unrecoverable deletion

Progress

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!

Usage

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

Installation

Install from crates.io: cargo install nrm

Build from source: cargo build --release

Features:

  • bigendian: In case your device is (the rare) big endian

License

Copyright (c) 2022 myl7

SPDX-License-Identifier: Apache-2.0

About

Use ptrace to trap unlink* syscall and do path validation to protect your files from sad unexpected unrecoverable deletion

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages