From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id C92B83857405 for ; Sun, 26 Jun 2022 21:10:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C92B83857405 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x0e.wildebeest.org [172.31.17.144]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 995EB30005B6 for ; Sun, 26 Jun 2022 23:10:19 +0200 (CEST) Received: by reform (Postfix, from userid 1000) id 257002E83468; Sun, 26 Jun 2022 23:10:19 +0200 (CEST) From: Mark Wielaard To: libc-alpha@sourceware.org Subject: Handle running make check in a restricted environment Date: Sun, 26 Jun 2022 22:59:11 +0200 Message-Id: <20220626205915.33201-1-mark@klomp.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2022 21:10:22 -0000 Hi, A couple of tests fail in a restricted environment, like when running under a systemd service or container with a seccomp filter set. Detect such environments and mark the test as UNSUPPORTED instead of failing. The following 4 patches are needed to get glibc-fedora-x86_64 builder, which runs as a container, to zero FAIL: https://builder.sourceware.org/buildbot/#/builders/glibc-fedora-x86_64 - time/tst-clock2.c: clock_settime CLOCK_MONOTONIC might return EPERM - tst-pkey.c: Handle no permission to alloc memory protection keys - tst-pidfd.c: Test is UNSUPPORTED without PTRACE_MODE_ATTACH_REALCREDS - tst-personality.c: Handle personality failing with errno EPERM Patches also available at: https://code.wildebeest.org/git/user/mjw/glibc/log/?h=container-perms Cheers, Mark