Skip to content
Snippets Groups Projects
Unverified Commit a17c60e5 authored by Mickaël Salaün's avatar Mickaël Salaün
Browse files

samples/landlock: Don't error out if a file path cannot be opened


Instead of creating a hard error and aborting the sandbox creation,
accept file path not usable in the LL_FS_RO and LL_FS_RW environment
variables but only print a warning.  This makes it easier to test, for
instance with LL_FS_RO="${PATH}:/usr/lib:/lib"

Print that we are going to execute the command in the sandbox before
doing so.

Rename "launch" to "execute", and improve header description.

Reviewed-by: default avatarGünther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20240307143849.1517218-1-mic@digikod.net


[mic: Improve header description as suggested by Günther]
Signed-off-by: default avatarMickaël Salaün <mic@digikod.net>
parent 63817feb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment