Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

future: sync #140

Open
ezrizhu opened this issue Jan 11, 2024 · 2 comments · May be fixed by #145
Open

future: sync #140

ezrizhu opened this issue Jan 11, 2024 · 2 comments · May be fixed by #145
Assignees

Comments

@ezrizhu
Copy link
Collaborator

ezrizhu commented Jan 11, 2024

ideally we don’t want to use nc.

  • shared fd, fifo
  • lockfile

could use a binary but it’s last resort.

  • We want to run everything in the same user, ls -lah should have the same output inside and outside of try, as a non-root user.
@ezrizhu ezrizhu mentioned this issue Jan 13, 2024
3 tasks
@ezrizhu ezrizhu self-assigned this Jan 13, 2024
@ezrizhu
Copy link
Collaborator Author

ezrizhu commented Feb 6, 2024

~
λ 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
Copy link
Collaborator Author

ezrizhu commented Feb 16, 2024

poc exists da611fd now, next step is to incorporate this into main.

@ezrizhu ezrizhu linked a pull request Feb 17, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant