landlock-sandboxer: build against latest compatible linux
This commit is contained in:
@@ -1,9 +1,14 @@
|
|||||||
# N.B.: landlock is a relatively new thing as of 2024/01;
|
# N.B.: landlock is a relatively new thing as of 2024/01, and undergoing ABI revisions.
|
||||||
# `pkgs.linux` is kinda old.
|
# the ABI is versioned, and the sandboxer will work when run against either a newer or older kernel than it was built from,
|
||||||
# may want to use `linux_latest`, here and everywhere, if you find landlock to be lacking.
|
# but it will complain (stderr) if the kernel announces an ABI version greater than that which the sandboxer knows of.
|
||||||
|
# so, build against the latest linux we can.
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, linux
|
, linuxKernel
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
# linux = linuxKernel.kernels.linux_6_7; # build fails
|
||||||
|
linux = linuxKernel.kernels.linux_6_6;
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "landlock-sandboxer";
|
pname = "landlock-sandboxer";
|
||||||
version = linux.version;
|
version = linux.version;
|
||||||
|
Reference in New Issue
Block a user