binpash / try

Inspect a command's effects before modifying your live system
MIT License
5.18k stars 66 forks source link

future: sync #140

Open ezrizhu opened 8 months ago

ezrizhu commented 8 months ago

ideally we don’t want to use nc.

could use a binary but it’s last resort.

ezrizhu commented 8 months ago
~
λ cd $(mktemp -d)
/tmp/tmp.LmMxToZOXw
λ mkfifo test
/tmp/tmp.LmMxToZOXw
λ unshare --mount --map-root-user --user --pid --fork /bin/bash
root@sherlock:/tmp/tmp.LmMxToZOXw# echo a > test
root@sherlock:/tmp/tmp.LmMxToZOXw#
~
λ cd /tmp/tmp.LmMxToZOXw
/tmp/tmp.LmMxToZOXw
λ cat test
a

could do fifo

ezrizhu commented 7 months ago

poc exists https://github.com/binpash/try/commit/da611fd0b55b6b9bf269c2f545984c367c2a2f33 now, next step is to incorporate this into main.