From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 6195C2C532 for ; Fri, 16 Aug 2024 17:57:42 +0200 (CEST) Received: (qmail 1365 invoked by uid 550); 16 Aug 2024 15:57:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 1298 invoked from network); 16 Aug 2024 15:57:38 -0000 Date: Fri, 16 Aug 2024 11:57:29 -0400 From: Rich Felker To: "Ward, Ryan C" , "musl@lists.openwall.com" Message-ID: <20240816155729.GS10433@brightrain.aerifal.cx> References: <7b3b00712ea64482a9f3ecabe64306fa@boeing.com> <20240816073538.GC3766212@port70.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240816073538.GC3766212@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] libc-test contribution On Fri, Aug 16, 2024 at 09:35:38AM +0200, Szabolcs Nagy wrote: > * Ward, Ryan C [2024-08-16 01:06:55 +0000]: > > Hello, > > > > I would like to start contributing some test cases to libc-test. I have > > started with testing some simple recent regressions (e.g. a test for > > the recent fix commit 947b4574), and am aiming to start filling in > > missing functional test coverage. Am I able to submit the test > > directly to this mailing list, and are there any other immediate > > areas of libc-test that need implementation? > > this list is fine > > there are many areas missing > but they need test infrastucture > eg networking tests depending on > /etc/resolv.conf need to run in > a separate mount namespace. I could try writing a helper module to do this. Basically it would just unshare into a new user+mount+network namespace and, if /etc/resolv.conf exists, bind-mount an empty file over it. Then you can bind port 53 and it will intercept all queries, and you don't have to worry about anything going out to the real network or having network-dependent behaviors. Rich