From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id AE8103858D32 for ; Sun, 4 Jun 2023 20:43:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE8103858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b1ba50e50bso17436921fa.1 for ; Sun, 04 Jun 2023 13:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685911381; x=1688503381; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZqzTOR7y/ShsPpKQC4in9kK2R9iy9Znlxj7+SF0fosY=; b=bou02mW9N8z5afhbq5E7blMR3UxgyPI3iWCSnxZPEW8MPYdFj1LC/x1W6tscV0X+Ej 22CJuLy629tP3aeNRFefpYMB2P98maDhs2xaNrr29G7NMrtLdkONlZ5t/QrskcwgybEz yOXiX8jIpjkxaBI4IG2eiENydcui6sssLpvzxxSM1y83F/EjO+Gongj1NA2nLe37j9Ig Z7j8HUPrjzNXG6h4ZvWCvyVSFJZKSfXfmYlCSwKAMypBYbEQYBducRdUHJj4hXOG38KH DumRtwWuHWlFMZkJQMi2K0zsC68zCfIp4XCygQfX4WKHJkONCPk47MatowYjHJxDyjVu p8Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685911381; x=1688503381; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZqzTOR7y/ShsPpKQC4in9kK2R9iy9Znlxj7+SF0fosY=; b=jAkF7Y6eBMP6VIaLAcsx7cMtvGLbg/U21zvt3m5s4kyvRN4MKRP+5rin2Hqcm+qzBS fgf4BkKrmkBRNGm7WNRXB6ojlsvjj0Qp0aWhAbeBHdRA72fzqFHZx6Jo7Eq4WiP3TwYz 2Qr7EjZFoQwCeGLqSS+1arzk+DSSYWNkXuFprivD2y461gdm/FonjTs/A4PrmF7SW0MH sm4+qkGMRNCtisR/Yt42xRiH5Ohz/WCxVyeOJNqtt2VED5q34AR/2OaBwpBXFCONdeXp xleC7Ooi7RMxs43FtY3LdaE3I0MMPfWZFgLoyPeQ/YsjWTEOLVQBF1/mDAzBYNs2CZQy FrGQ== X-Gm-Message-State: AC+VfDwLWf4UD2hyzAalr4AzoU8xrUAhBL90d8JKDpWLvJH0/+yvp9k5 qtiTol8vGgKkLTQIqzD5/i987w9T1W8= X-Google-Smtp-Source: ACHHUZ5zjBx6HElszoRngFJCIQfWx+7mrfnoGTAvIgv7hj/gGuYJMTOhVNwAWc86KGhfOkBtlrVINg== X-Received: by 2002:a2e:9194:0:b0:2b1:c16e:f339 with SMTP id f20-20020a2e9194000000b002b1c16ef339mr1540670ljg.24.1685911380587; Sun, 04 Jun 2023 13:43:00 -0700 (PDT) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:be3:dad4:cf62:50cd]) by smtp.gmail.com with ESMTPSA id h1-20020a2e9001000000b002a929484fa0sm1114587ljg.68.2023.06.04.13.42.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jun 2023 13:42:59 -0700 (PDT) From: Sergey Bugaev To: libc-alpha@sourceware.org, bug-hurd@gnu.org Cc: Samuel Thibault Subject: [PATCH v3 0/2] O_IGNORE_CTTY everywhere Date: Sun, 4 Jun 2023 23:42:56 +0300 Message-Id: <20230604204258.2026816-1-bugaevc@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: Hello, this is the v3 of the "O_IGNORE_CTTY everywhere" patchset. Please see the v1 cover letter [0] for an explanation of what O_IGNORE_CTTY is and does. [0]: https://sourceware.org/pipermail/libc-alpha/2023-April/147355.html Changes since v2: 1. Dropped the already commited patches. 2. Dropped the unrelated changes to daemon and csu/check_fds.c, since there doesn't seem to be a clear consensus on what we want there. I don't really care that much about those changes, and I don't think they should stall/block the actual O_IGNORE_CTTY patches. Plus, the Hurd has its own version of check_fds.c anyway, which already does the right thing wrt cttys. With this, the patchset is quite small and manageable again. I'm still interested in whether there could be a way to pass O_IGNORE_CTTY when using fopen () too -- but that doesn't have to block this patchset either. Sergey Sergey Bugaev (2): include/fcntl.h: Define O_IGNORE_CTTY Use O_IGNORE_CTTY where appropriate catgets/open_catalog.c | 4 ++-- elf/dl-load.c | 2 +- elf/dl-misc.c | 2 +- elf/dl-profile.c | 2 +- gmon/gmon.c | 4 ++-- iconv/gconv_cache.c | 3 ++- include/fcntl.h | 15 +++++++++++++++ locale/loadarchive.c | 7 ++++--- locale/loadlocale.c | 4 ++-- login/openpty.c | 2 +- login/utmp_file.c | 7 ++++--- misc/daemon.c | 2 +- nss/nss_db/db-open.c | 3 ++- rt/shm_open.c | 2 +- shadow/lckpwdf.c | 2 +- sysdeps/mach/hurd/opendir.c | 2 +- sysdeps/pthread/sem_open.c | 4 ++-- sysdeps/unix/bsd/getpt.c | 4 ++-- 18 files changed, 45 insertions(+), 26 deletions(-) -- 2.40.1