From patchwork Fri Jul 28 13:21:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1814287 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=yc8Q2qAq; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=7iqeI128; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RC7ZK60C0z1ybX for ; Fri, 28 Jul 2023 23:21:29 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 0FBBD3CE658 for ; Fri, 28 Jul 2023 15:21:26 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id B4F6B3C9338 for ; Fri, 28 Jul 2023 15:21:24 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 2D8286013F7 for ; Fri, 28 Jul 2023 15:21:23 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7E18E21902; Fri, 28 Jul 2023 13:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1690550483; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+DuQYP8t7GFRob4TPUfXo7P2x2W7p2Vik1ut/adCzZE=; b=yc8Q2qAqniAs7DQFYh7SUZBJJFBJFeN8+tQJWpZRPXqya6nd/5/Nvizs7g4DsA20C+wAj6 k1NA+pDzjbHzZLPY4KFgFx40yT9PcUWcA1Ow2pYS1jfWJnyK4D8nxc5+slBHMFUKsn1ugG xyuOblZ77MNVNO221GTHhLRfQv8hXQk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1690550483; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+DuQYP8t7GFRob4TPUfXo7P2x2W7p2Vik1ut/adCzZE=; b=7iqeI128fNo8CwOUfkSuc3zRK44XnEy5sIhczveJJdedDC1411EIEshNtm2peVTwTkBt4f bqb+CpmfIQiMg7DQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3B395133F7; Fri, 28 Jul 2023 13:21:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id P4cqDdPAw2RKBgAAMHmgww (envelope-from ); Fri, 28 Jul 2023 13:21:23 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Fri, 28 Jul 2023 15:21:13 +0200 Message-ID: <20230728132120.17322-1-pvorel@suse.cz> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-5.smtp.seeweb.it Subject: [LTP] [PATCH 0/4] shell: Add TST_SKIP_IN_{LOCKDOWN,SECUREBOOT}=1 X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" and use it in insmod01.sh. Petr Vorel (4): lib: shell: Add TST_SKIP_IN_LOCKDOWN=1 lib: shell: Add TST_SKIP_IN_SECUREBOOT=1 insmod01.sh: Skip test on lockdown and secure boot doc/shell-API: Document TST_SKIP_IN_{LOCKDOWN,SECUREBOOT}=1 doc/shell-test-api.txt | 5 +++++ doc/test-writing-guidelines.txt | 4 ++-- testcases/commands/insmod/insmod01.sh | 3 +++ testcases/lib/.gitignore | 2 ++ testcases/lib/Makefile | 2 +- testcases/lib/tst_lockdown_enabled.c | 12 ++++++++++++ testcases/lib/tst_secureboot_enabled.c | 12 ++++++++++++ testcases/lib/tst_test.sh | 10 +++++++++- 8 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 testcases/lib/tst_lockdown_enabled.c create mode 100644 testcases/lib/tst_secureboot_enabled.c Reviewed-by: Cyril Hrubis Reviewed-by: Li Wang