From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by sourceware.org (Postfix) with ESMTPS id 45AE63858D20 for ; Mon, 12 Jun 2023 18:30:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 45AE63858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-39cc64e4a44so855827b6e.0 for ; Mon, 12 Jun 2023 11:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686594619; x=1689186619; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=NefAQZmhyMB8hHDQnQFLzzFMPjLo6lvYLHFLKYEu0wU=; b=TqX780bL+1fUH6U1ztmR6Z7bGIRmoHGiWjGTYkS7fsdajdk5IUJpcupWh4Ir9o4/si 9ySXiET5IfMVR9wKYzxdhmVfHXnOwGFifes+67g8D+aZQu91oFIV1X+bR++py1DbHdSE x/qR4Gv0pZnqtbnx6QJ+8TLPAAxqBQlSlUb/q1pHxhAq8NQGyqMrYT+nQFcud3J3jGTw sgoySo5kIs8YNoJjEc3qFr0Y0pUeMRKzUzLWzWL+baJj+cBkH1pZxaS9eO85CcO6DpgF QwB0YIn50MdD/RTKdxf1Yp/aPQSuFU4d3fhBDIATP4L7qILWz6qrc4G2JAC7V8UC1EJC hIdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686594619; x=1689186619; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NefAQZmhyMB8hHDQnQFLzzFMPjLo6lvYLHFLKYEu0wU=; b=FHnkOeKlR58S78cRjkdXAVtNUXZXzBRK5EldJYei/tflZP71EaNizNm3P4vtbLxy0W ou0AsIBQw02lySopkfQ0hBe0gNpwnw9tSPwT0erP67+BeAnx3Wseoz/IYOb1HA7URYvd 1COQs8P3AHBHpqfxjjdn1JS+3+LJGSah1Z9SPKj4nFL4ZGfRv4XFTfwpxA2qsoUJ8ZNG bkh4dKLfbgnfPr5b7U+BweGqtLa+LJu174jgSISWDtth/cWiFs1EciGCvxWNSN4yQsoG PCDbyVxMarxJsEUuT6nBXDDqMjY9/gKYgK+X4iXkTwiJjGqvrFeYWJMpSmhDNgrrlBXm Pf8A== X-Gm-Message-State: AC+VfDxBYZF9KvFZdW2ZuqtuN/V7phSioqhu4a/HjbT0v9yXoxMAjRWD s/K2CcLlfebFfcqZvuMCNidrqDYEoYhV8pVhApPfuw== X-Google-Smtp-Source: ACHHUZ4wRs30ygl2M3I2Bvctw5NZSpPz8jmEXsnikq2ccCL5wn0a8cTUblDSLpYrrvYDIP3fd0qjww== X-Received: by 2002:a05:6808:2010:b0:39a:bc60:adf9 with SMTP id q16-20020a056808201000b0039abc60adf9mr5378798oiw.7.1686594618882; Mon, 12 Jun 2023 11:30:18 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:8501:af26:cdf:f789:4317]) by smtp.gmail.com with ESMTPSA id r5-20020acaf305000000b003896e31867esm4472095oih.49.2023.06.12.11.30.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 11:30:18 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 0/2] Improve tst-ttyname within containers Date: Mon, 12 Jun 2023 15:30:12 -0300 Message-Id: <20230612183014.882895-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The test might fail depending on how the container is configure, its capabilities, and/or which LSM is enabled and how it is configured (check the discussion on libc-alpha [1]). [1] https://sourceware.org/pipermail/libc-alpha/2023-June/148747.html Adhemerval Zanella (2): linux: Split tst-ttyname linux: Return unsupported if procfs can not be mount on tst-ttyname-namespace sysdeps/unix/sysv/linux/Makefile | 3 +- .../{tst-ttyname.c => tst-ttyname-common.c} | 208 +----------------- sysdeps/unix/sysv/linux/tst-ttyname-direct.c | 110 +++++++++ .../unix/sysv/linux/tst-ttyname-namespace.c | 147 +++++++++++++ 4 files changed, 263 insertions(+), 205 deletions(-) rename sysdeps/unix/sysv/linux/{tst-ttyname.c => tst-ttyname-common.c} (68%) create mode 100644 sysdeps/unix/sysv/linux/tst-ttyname-direct.c create mode 100644 sysdeps/unix/sysv/linux/tst-ttyname-namespace.c -- 2.34.1