News for hackers. Stuff that matters.
Re:Landrun: Sandbox any Linux process using Landlock, no roo... by nine_k on Saturday March 22, 2025 @02:44PM (#43447684)
As a workaround you could create a tmpfs device like /tmp_noexec with noexec flag, and mount it instead of the normal /tmp. But landrun does not (yet?) allow changing the name in directory options :(

For added security, I'd create an ephemeral tmpfs disk for each landlocked invocation: obviously the program we're running has no business seeing what other processes may have put to /tmp.

Re:Landrun: Sandbox any Linux process using Landlock, no roo... by ranger_danger on Saturday March 22, 2025 @02:54PM (#43447753)
> I'd create an ephemeral tmpfs disk for each landlocked invocation

And now you've just invented firejail.

Re:Landrun: Sandbox any Linux process using Landlock, no roo... by nine_k on Saturday March 22, 2025 @03:07PM (#43447841)
UX-wise, yes. Internally firejail and landrun use different isolation APIs.
Re:Landrun: Sandbox any Linux process using Landlock, no roo... by ranger_danger on Saturday March 22, 2025 @05:36PM (#43448837)
Firejail supports Landlock though: https://github.com/netblue30/firejail/pull/6078