Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22ACDD3B7EA for ; Tue, 9 Dec 2025 12:41:39 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 063333D02FC for ; Tue, 9 Dec 2025 13:41:37 +0100 (CET) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [IPv6:2001:4b78:1:20::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id A6ED53D02EC for ; Tue, 9 Dec 2025 13:41:02 +0100 (CET) Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.3]) (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-6.smtp.seeweb.it (Postfix) with ESMTPS id 45B171400967 for ; Tue, 9 Dec 2025 13:41:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=yF NuYg/d4x209LljSc3rswSIPT6b4XJuFuLmZIe1FQA=; b=LOv4ak9i9ijXKroagL 3+t+3odNabW6Uf9m8FMv1S4yCDtGSX6sRuTP9IOvw+qV7FVfMlB0px1rdPUPcqxl 3YysAj2Nfam0w/QtLDCQPCgzlUMwWDr6XBvTjWNU3hO29872O4RC3sB4eXqH8z+6 FmDjl8WiJ6CLuGX2QapVOMmvE= Received: from localhost (unknown []) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wAnHO3VGDhpxK_vAg--.3959S2; Tue, 09 Dec 2025 20:40:54 +0800 (CST) From: simplemessager@163.com To: pvorel@suse.cz, ltp@lists.linux.it Date: Tue, 9 Dec 2025 20:37:35 +0800 Message-ID: <20251209124041.216542-2-simplemessager@163.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20251209124041.216542-1-simplemessager@163.com> References: <20251208150542.704006-1-pvorel@suse.cz> <20251209124041.216542-1-simplemessager@163.com> MIME-Version: 1.0 X-CM-TRANSID: _____wAnHO3VGDhpxK_vAg--.3959S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xw1fWr1DXrWkXF1rJr1xAFb_yoW3ZwbEk3 W7Xr4S9w4UWws7Wr1UAa4rXF1a9w18GFnYgrs3Ja4qkasYvanxC3s5ZFyxArW8K39Igwn0 qas8XrWUKr43GjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0XTmDUUUUU== X-Originating-IP: [36.111.64.84] X-CM-SenderInfo: hvlp1z5hph22hdjh2qqrwthudrp/1tbiYBQfl2k4Dn-XQwAAsI X-Virus-Scanned: clamav-milter 1.0.9 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH] safe_keyctl: Skip with TCONF on EOPNOTSUPP 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" From: Petr Vorel errno EOPNOTSUPP is likely a configuration issue, skip testing with TCONF. Signed-off-by: Petr Vorel Signed-off-by: Mingyu Li --- include/lapi/keyctl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/lapi/keyctl.h b/include/lapi/keyctl.h index e08b8f132..eac9e2609 100644 --- a/include/lapi/keyctl.h +++ b/include/lapi/keyctl.h @@ -212,7 +212,8 @@ static inline long safe_keyctl(const char *file, const int lineno, rval = keyctl(cmd, arg2, arg3, arg4, arg5); if (rval == -1) { - tst_brk_(file, lineno, TBROK | TERRNO, + tst_brk_(file, lineno, + errno == EOPNOTSUPP ? TCONF : TBROK | TERRNO, "keyctl(%d, %lu, %lu, %lu, %lu)", cmd, arg2, arg3, arg4, arg5); } -- 2.47.2 -- Mailing list info: https://lists.linux.it/listinfo/ltp