Nice series of blog posts I found detailing how to use bubblewrap (the sandboxing tool used by Flatpak) to sandbox regular programs.