From patchwork Wed Feb 21 08:42:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Gao X-Patchwork-Id: 1901916 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=HkCAGMGD; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=KoFkS5M1; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TfqZ80xSQz23d2 for ; Wed, 21 Feb 2024 19:44:00 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1708505038; h=to : date : message-id : in-reply-to : references : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : content-type : content-transfer-encoding : sender : from; bh=xQOhvltjKQc07pOLSqAOSdavz6ZtzF1RxS3R3rjtz6s=; b=HkCAGMGDYCKsLClxqvn/L5K9aPxLpVioiFMOwZUy8GKC7SvblBvHk7WeqNeLlI5pAWQ1U /pDq1cOP//pqiCyob2RdXcYR4QlQmzCRPhVBLy8JHU00BfvaNWKI2zJOy1AywzGNAsKI0UE ZCfzhDgUwcIknyJe8II0KvrujzbBwUk= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 05DDC3D0154 for ; Wed, 21 Feb 2024 09:43:58 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 7F9253D0155 for ; Wed, 21 Feb 2024 09:43:22 +0100 (CET) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 6D5C320110F for ; Wed, 21 Feb 2024 09:43:21 +0100 (CET) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2d228a132acso54965561fa.0 for ; Wed, 21 Feb 2024 00:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1708505000; x=1709109800; darn=lists.linux.it; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JVO3/vC4HtMoldrQshtrqdwAKU4tDlaQiqBvXum3Ur0=; b=KoFkS5M1FRG1IqP2vIP7OLt3ejuhTZif3OglovNFx/RoDvcKoAKLvU5I6icNFJ2ZRq nLDoedlCpfDLRl8ckhqed74WOrjhUK5/ZSTmSEdj0fqHYZXPHo6IIgE6t/H6FCev+dAF 6RLjF7SgPumtCGdIpouTRnqD6v5/sH+uDmkwN/zxa+o6PGZ5VL/QV8O/2X5dKk/GQioD rEupBTi2bv3ukccN3T95qF3vQfOgWRofzJFk1kPye0EdWam5v1NswcfUhn06HRi4TlbP 1tJj8QZZ2FzpfluWqUz4Y+SIMYbeMsEiqKDFAja++u29lqYUbyhcmyTNq+iECGhoRdJj GZXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708505000; x=1709109800; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JVO3/vC4HtMoldrQshtrqdwAKU4tDlaQiqBvXum3Ur0=; b=rgOsBrHl+DnLeL99SShksYVPT8qEukRs//cQAoGgyp2TQsNJ9RpjCtdh59TWBHXmFU H9E4fQocc1A4lykeBkZuOfi9lrMmciAgLZu2NGwHdvxjM6CMb2TKFMASFCDTmQP7lvN9 dK2b2lRxix5qbkMg++mlQ1xkvEoX/5mze3qC90odCYRuE4fCsIgjWyTraSijDf65Gl2R LI2CUZIzXuh2WJg+eRoet4f+aiVqZgcpzWhbv1lVAoAkla4PgDzX4zQt8trtx7qLieem d0nQXkd4S3lNyTyg/5vANFKgpnjxDVvSu/x6Kx0kGujIdyBUfFwqbH07UVVRQCwNN3Un fH/A== X-Gm-Message-State: AOJu0YxvDPDxfGZFpCdxHQPM+fKoS4oFSd3ph5i8LwiItugPd++ElbRG Px6vRZLvMozy2W/DnaP3J11f+uK/AGWOAtpyIjfaneWfCbxc4TUr/mP7IShrv4HZSjjQs0eCCW8 = X-Google-Smtp-Source: AGHT+IH+XzIid/HlQ5I/19swSA6FXT9+zZiC5gFi/dRqUsfVmhfOWqVYb+YrN12afOiJG9n4hkC/qg== X-Received: by 2002:a2e:9e94:0:b0:2d2:3f09:ca3e with SMTP id f20-20020a2e9e94000000b002d23f09ca3emr4129321ljk.50.1708505000226; Wed, 21 Feb 2024 00:43:20 -0800 (PST) Received: from localhost ([223.72.38.233]) by smtp.gmail.com with ESMTPSA id n3-20020aa79843000000b006e319d8c752sm7787487pfq.150.2024.02.21.00.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 00:43:19 -0800 (PST) To: ltp@lists.linux.it Date: Wed, 21 Feb 2024 03:42:56 -0500 Message-Id: <20240221084256.32661-3-wegao@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240221084256.32661-1-wegao@suse.com> References: <20240221071635.17239-1-wegao@suse.com> <20240221084256.32661-1-wegao@suse.com> MIME-Version: 1.0 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-7.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v4 2/2] statx07.c: set umask to 0 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: , X-Patchwork-Original-From: Wei Gao via ltp From: Wei Gao Reply-To: Wei Gao Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" When system's default umask is 0077, this will trigger issues. Signed-off-by: Wei Gao --- testcases/kernel/syscalls/statx/statx07.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testcases/kernel/syscalls/statx/statx07.c b/testcases/kernel/syscalls/statx/statx07.c index 4dbf83e18..227c33c96 100644 --- a/testcases/kernel/syscalls/statx/statx07.c +++ b/testcases/kernel/syscalls/statx/statx07.c @@ -116,6 +116,8 @@ static void setup(void) int ret; char server_path[BUFF_SIZE]; + umask(0); + cwd = tst_get_tmpdir(); SAFE_MKDIR(SERV_PATH, DEFAULT_MODE);