From 4593c25b4ab6eb9f19e4bb856d56529dc99a0ab0 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Fri, 18 Feb 2022 19:38:12 +0100 Subject: [PATCH 1/2] swtpm: 0.7.0 -> 0.7.1 https://github.com/stefanberger/swtpm/releases/tag/v0.7.1 Fixes: CVE-2022-23645 --- pkgs/tools/security/swtpm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/swtpm/default.nix b/pkgs/tools/security/swtpm/default.nix index f05658f8a98e..adfc27171b6c 100644 --- a/pkgs/tools/security/swtpm/default.nix +++ b/pkgs/tools/security/swtpm/default.nix @@ -15,13 +15,13 @@ stdenv.mkDerivation rec { pname = "swtpm"; - version = "0.7.0"; + version = "0.7.1"; src = fetchFromGitHub { owner = "stefanberger"; repo = "swtpm"; rev = "v${version}"; - sha256 = "sha256-5MKQmZxTW8WofmTkV9kGeGN5RxsgVVMFZEF3rPDUO6Q="; + sha256 = "sha256-LJQF8PlRkhCJ8rjZzDetg1BFuTb7GBJ8lW6u5hO134k="; }; nativeBuildInputs = [ From 93609b6af5e30470c9df3c9345b999d27f46bb4b Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sun, 20 Feb 2022 12:56:45 +0100 Subject: [PATCH 2/2] swtpm: add nixosTests.systemd-cryptenroll to passthru.tests --- pkgs/tools/security/swtpm/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/security/swtpm/default.nix b/pkgs/tools/security/swtpm/default.nix index adfc27171b6c..648165d8262e 100644 --- a/pkgs/tools/security/swtpm/default.nix +++ b/pkgs/tools/security/swtpm/default.nix @@ -11,6 +11,7 @@ # Tests , python3, which +, nixosTests }: stdenv.mkDerivation rec { @@ -65,6 +66,8 @@ stdenv.mkDerivation rec { outputs = [ "out" "man" ]; + passthru.tests = { inherit (nixosTests) systemd-cryptenroll; }; + meta = with lib; { description = "Libtpms-based TPM emulator"; homepage = "https://github.com/stefanberger/swtpm";