From patchwork Tue Mar 1 09:15:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Cervesato X-Patchwork-Id: 1599267 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=RRMMXB6X; dkim=fail reason="signature verification failed" header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=x3OtYxNX; dkim-atps=neutral Authentication-Results: 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=) 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 RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K7Fl43wYsz9sBy for ; Tue, 1 Mar 2022 22:44:00 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 1D7133CA305 for ; Tue, 1 Mar 2022 10:16:20 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 4EBC53CA2EA for ; Tue, 1 Mar 2022 10:15:24 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (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-3.smtp.seeweb.it (Postfix) with ESMTPS id A14EE1A010F9 for ; Tue, 1 Mar 2022 10:15:23 +0100 (CET) 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-out2.suse.de (Postfix) with ESMTPS id 19ECA1F37E; Tue, 1 Mar 2022 09:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646126123; 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: in-reply-to:in-reply-to:references:references; bh=WJdMA/s7Ef5RGYTzGIgsQnDZb7f+Q+FKJ5U8OJilMTg=; b=RRMMXB6XYHVZO8iSvjccdVmuhUMdYbcnW/y2vy3ZPYYK7bY44NJct+dvHyTur68tSP7uWp qs9h+iznJrIZBQ1hn26y/W5nkpNmvIU0/deXMoiGKpssbIWVJsBXEIH5ObQizXfDz4FuMA cb56Z/u3e2Ku7LgKB/nkkX78HrRkGdc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646126123; 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: in-reply-to:in-reply-to:references:references; bh=WJdMA/s7Ef5RGYTzGIgsQnDZb7f+Q+FKJ5U8OJilMTg=; b=x3OtYxNXNxYkjo69SdD8g0WFGpolVgfAsMXHuoJitLfnbAHR5xtb0vteS5jbBQZ/wWIDvF SgPDpgmQdhB/qnAg== 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 AC15613B08; Tue, 1 Mar 2022 09:15:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qJwVKCrkHWJ3VwAAMHmgww (envelope-from ); Tue, 01 Mar 2022 09:15:22 +0000 From: Andrea Cervesato To: ltp@lists.linux.it Date: Tue, 1 Mar 2022 10:15:16 +0100 Message-Id: <20220301091517.11142-6-andrea.cervesato@suse.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220301091517.11142-1-andrea.cervesato@suse.de> References: <20220301091517.11142-1-andrea.cervesato@suse.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.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 autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH v3 5/6] Removed obsolete mountns_helper.h 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" Signed-off-by: Andrea Cervesato --- .../containers/mountns/mountns_helper.h | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 testcases/kernel/containers/mountns/mountns_helper.h diff --git a/testcases/kernel/containers/mountns/mountns_helper.h b/testcases/kernel/containers/mountns/mountns_helper.h deleted file mode 100644 index 4b4538eb8..000000000 --- a/testcases/kernel/containers/mountns/mountns_helper.h +++ /dev/null @@ -1,61 +0,0 @@ -/* Copyright (c) 2014 Red Hat, Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of version 2 the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "libclone.h" -#include "test.h" -#include "safe_macros.h" - -#define DIRA "A" -#define DIRB "B" - -static int dummy_child(void *v) -{ - (void) v; - return 0; -} - -static int check_newns(void) -{ - int pid, status; - - if (tst_kvercmp(2, 4, 19) < 0) - tst_brkm(TCONF, NULL, "CLONE_NEWNS not supported"); - - pid = do_clone_unshare_test(T_CLONE, CLONE_NEWNS, dummy_child, NULL); - if (pid == -1) - tst_brkm(TCONF | TERRNO, NULL, "CLONE_NEWNS not supported"); - SAFE_WAIT(NULL, &status); - - return 0; -} - -static void cleanup(void) -{ - umount(DIRA); - umount(DIRB); - tst_rmdir(); -} - -static void setup(void) -{ - tst_require_root(); - check_newns(); - tst_tmpdir(); - TST_CHECKPOINT_INIT(tst_rmdir); - SAFE_MKDIR(cleanup, DIRA, 0777); - SAFE_MKDIR(cleanup, DIRB, 0777); - SAFE_TOUCH(cleanup, DIRA"/A", 0, NULL); - SAFE_TOUCH(cleanup, DIRB"/B", 0, NULL); -}