Session specific tmp folder

You can use bubblewrap to create isolated tmp directories accessible only for a specific shell.

$ bwrap --dev-bind / / --tmpfs /tmp $SHELL

This can be used for example to restrict access to sensitive files from outside process while being able to freely access them from a specific session.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.