Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2866493imu; Sun, 11 Nov 2018 02:41:30 -0800 (PST) X-Google-Smtp-Source: AJdET5fl2jY0J0QEbqcn4de0eI2a1A3Pj9YQaeDIE0sWYn9To+ZUDgShN2PMS6vDDWcTvxjvyz2z X-Received: by 2002:a63:fe0a:: with SMTP id p10mr13512610pgh.265.1541932890646; Sun, 11 Nov 2018 02:41:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541932890; cv=none; d=google.com; s=arc-20160816; b=iCx9aYCFUfkQG/iNse28cAqbEleuKAAn9zJIS+MtHnd7jEd6WJQZ3iUGnPtPHzyuCy hbUidpkJe+ybzwBMDA4SDhD8uvaQWNwRR57Xmcc9xbPdmS245TBh2icbV0K0r8x82xex zzJrx3vNTGH6dvphQPrLRO9y3dPLQcA6EH82DX1wuZIYTVlg7HtGG7cesH7//p84ezdQ SnTA9aXzerNWXiFuVVqNkH68/wQo8isP+D2rQ4D/SJ9MsfAvrliSG/rUb+pwC8WASR5k 811Z2Fte+sU2lCzWStl2l+GRVFFivwW54PvZJ08XoX/WFLI+FtfqXOItehb3q+NCL1df kakg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=i+tT/gClDCs+EuOv1q8WyPXyuMd91I15g4ysHuLwIJM=; b=BUGtDLu7DPcQ/v2zD0Y8BuhTH9acIJoWTPK+im5vlSV43Llk6IAFnmoAytQjNxRstE IP4ALCQLwoN2rFXvMVk6lVAIb2+PpmZaA8nzHOjp83PmguKmKMbWk0Q6fdcqw98Ph/mK bCXOtBCkOdB4Gan96B5ofuwvDq+YuRk8ZPQA2ZqTHOxxymgDacYmZ3TPMcM+4oRIzpWX BaCOyHWD04oEOVdeqRKEHDb4mYGYs12M86xxLCcvnlKOlY2lsv72wN+WhkUi7Wq94nCU LCiM+s76La5OZpkIvs8PnnYXtyegKzKUtaQz+vptFQ3Byq2RJI4BzYa8uBf4nu/KvoR+ Dfpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23-v6si6697897pls.141.2018.11.11.02.41.13; Sun, 11 Nov 2018 02:41:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727622AbeKKU3G (ORCPT + 99 others); Sun, 11 Nov 2018 15:29:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58000 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727462AbeKKU3F (ORCPT ); Sun, 11 Nov 2018 15:29:05 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C3D2E308338E; Sun, 11 Nov 2018 10:40:53 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-116-74.ams2.redhat.com [10.36.116.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9F2E5D736; Sun, 11 Nov 2018 10:40:49 +0000 (UTC) From: Florian Weimer To: Daniel Colascione Cc: Willy Tarreau , "Michael Kerrisk \(man-pages\)" , linux-kernel , Joel Fernandes , Linux API , Vlastimil Babka , "Carlos O'Donell" , "libc-alpha\@sourceware.org" Subject: Re: Official Linux system wrapper library? References: <20181111081725.GA30248@1wt.eu> Date: Sun, 11 Nov 2018 11:40:44 +0100 In-Reply-To: (Daniel Colascione's message of "Sun, 11 Nov 2018 00:25:03 -0800") Message-ID: <87o9avx5g3.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Sun, 11 Nov 2018 10:40:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Daniel Colascione: > On Sun, Nov 11, 2018 at 12:17 AM, Willy Tarreau wrote: >> >> On Sun, Nov 11, 2018 at 07:55:30AM +0100, Michael Kerrisk (man-pages) wrote: >> > [1] https://sourceware.org/ >> >> >> Bah, after all, this >> >> wipes quite a bit of the shame I feel every time I do something to >> >> bypass it :-/ >> >> >> The sad thing is that the energy wasted arguing in the bug above could >> >> have been better spent designing and implementing a generic solution >> >> to expose syscalls without depending on glibc's politics anymore. >> >> >> Willy >> >> bugzilla/show_bug.cgi?id=6399 is a >> > longstanding example. >> >> This one was a sad read and shows that applications will continue to >> suffer from glibc's prehistorical view on operating systems > > Yes. I'm really not sure what glibc's current policies are meant to > accomplish. They don't serve any useful purpose. There seems to be > this weird subtext that glibc has leverage to change OS design, and it > really doesn't. It's a misplaced idealism and ends up just hurting > everyone. I'm not sure what this comment tries to accomplish. glibc tries to serve many masters: Current and past Linux kernel interfaces, current Hurd kernel interfaces, different versions of POSIX and C (and even C++), current C/C++ programming practice, historic C programming practice, current and historic Linux userspace programming, various platform ABIs, just to name a few. These requirements are often in conflict. >> Seeing comments suggesting an application should open >> /proc/$PID makes me really wonder if people actually want to use slow >> and insecure applications designed this way. > > That's a separate point. Yes, gettid should have a wrapper, but *also* > we should have an FD-based interface to processes, because outside > specialized contexts (e.g., parent-child waiting), the traditional > Unix process API really is impossible to use safely. But that's a > separate ongoing discussion. A descriptor-based API would not help glibc that much because there is an expectation encoded into many C programs that the C library does not keep permanently open descriptors for its own internal use. Thanks, Florian