logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tmperamental - avoid writing to /tmp

Description

tmperamental  uses  a  preloaded library that intercepts filesystem writes, and causes loud failures when
       writes are attempted on /tmp/*

       The idea here is by setting TMPDIR and friends, it catches programs in the act  of  not  respecting  such
       env-vars.

Environment

       If TMPDIR is unset, tmperamental will set it automatically to $HOME/tmp.

       tmperamental uses LD_PRELOAD to load a custom library libtmperamental.so that intercepts library calls.

Limitations

tmperamental only catches writes to  /tmp  at  shared  object  library  calls  using  the  standard  libc
       interface.   A statically-compiled program that makes system calls directly will be able to write to /tmp
       without being intercepted.

tmperamental 1.2                                   March 2020                                    TMPERAMENTAL(1)

Name

       tmperamental - avoid writing to /tmp

Synopsis

tmperamentalcmdarg1arg2...

Usage

       Prefix  the command you want to run with tmperamental and it should cause it to abort if it ever tries to
       write anywhere within /tmp.  This is pretty brutal, so you probably only want to use it for testing.

See Also