All of lore.kernel.org
 help / color / mirror / Atom feed
* Landlock setup
@ 2022-11-07 17:22 Yves Rutschle
  2022-11-07 18:02 ` Mickaël Salaün
  0 siblings, 1 reply; 9+ messages in thread
From: Yves Rutschle @ 2022-11-07 17:22 UTC (permalink / raw)
  To: landlock

Hello everyone,

Following Mickael's presentation of Landlock at
Pass-the-Salt 2022, I intend to add support for it to sslh.

I'm starting from the beginning: compiling and running the
example, which so far complains the LSM is not loaded, when
the kernel tells me it is...

I'm running a stock Debian where I manually add landlock to
the command line:

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.18.0-3-amd64 root=UUID=79c3bdf6-4be2-46d6-b006-bb17170247b1 ro quiet lsm=landlock

the kernel indicates the LSM is started:

[    0.076550] LSM: Security Framework initializing
[    0.076559] landlock: Up and running.


Yet running the example fails:

# LL_FS_RO="/bin:/lib:/usr:/proc:/etc:/dev/urandom" LL_FS_RW="/dev/null:/dev/full:/dev/zero:/dev/pts:/tmp" ./lock bash -i
Failed to check Landlock compatibility: Function not implemented
Hint: Landlock is not supported by the current kernel. To support it, build the kernel with CONFIG_SECURITY_LANDLOCK=y and prepend "landlock," to the content of CONFIG_LSM.



What would I be doing wrong?

Cheers,
Y.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-01-08 15:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07 17:22 Landlock setup Yves Rutschle
2022-11-07 18:02 ` Mickaël Salaün
2022-11-08 11:27   ` Yves Rutschle
2022-11-08 14:13     ` Mickaël Salaün
2022-11-08 17:15       ` Yves Rutschle
2022-12-16  9:44         ` Mickaël Salaün
2022-12-16  9:53           ` Yves Rutschle
2022-12-16 10:34             ` Mickaël Salaün
2023-01-08 15:29               ` Yves Rutschle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.