logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0001-Make-use-of-linux-landlock-conditional-on-syscall-av.patch (893B)


  1. From 938c7df38eee723e8baa459c9457968fdd63c952 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Tue, 3 Mar 2026 15:06:24 -0800
  4. Subject: [PATCH] Make use of linux landlock conditional on syscall
  5. availability
  6. This is also checked in the configure test, but to simplify building
  7. on oasis, just use the preprocessor.
  8. ---
  9. src/xz/sandbox.h | 4 ++++
  10. 1 file changed, 4 insertions(+)
  11. diff --git a/src/xz/sandbox.h b/src/xz/sandbox.h
  12. index 98b9862a..866b1478 100644
  13. --- a/src/xz/sandbox.h
  14. +++ b/src/xz/sandbox.h
  15. @@ -9,6 +9,10 @@
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. +#if !defined(SYS_landlock_create_ruleset) || !defined(SYS_landlock_restrict_self)
  19. +# undef HAVE_LINUX_LANDLOCK
  20. +#endif
  21. +
  22. #if defined(HAVE_PLEDGE) || defined(HAVE_LINUX_LANDLOCK) \
  23. || defined(HAVE_CAP_RIGHTS_LIMIT)
  24. # define ENABLE_SANDBOX 1
  25. --
  26. 2.49.0