Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6975667imu; Wed, 14 Nov 2018 09:42:40 -0800 (PST) X-Google-Smtp-Source: AJdET5fiTzk6ziR+aSVx360Gmzp5CYmrviSDmkE/FhCJR2TUG9YMRi49ngfGMFxgstl3JZvAWl6N X-Received: by 2002:a62:470f:: with SMTP id u15-v6mr2898313pfa.107.1542217360438; Wed, 14 Nov 2018 09:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542217360; cv=none; d=google.com; s=arc-20160816; b=U8pqB/aWFkXcJysHsjVtwS/ZtCSzQqM+xVgoo4qG0nIbYcT66nnWdvBfhcltGk8VFA oVj0huG7s58mJic0VPGPLK0+1148ZyjVjvM7TAm6J+/zgPTxiw/fPmRp6LGU7R//761c cyvT8kW9aUMy9S+P3T2etj2f4tM2f5kwmWyY/cqz05fKDmxZWsSH2VFULBssjt4tQS6e UdqvJnkGHJ6a0NEsNQzvj9HRr/vIYG9n7wg/XusWwRk3CxMUOVcEb1BJ1T1vd7t9Hpad JLvqyx1VFMPX9ko1bZwjBbPttuZ0jOAvTiFi4Z3OPptWliD9dS3CKESj8Yn+qIQYO7jD SZ0w== 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:references :message-id:in-reply-to:subject:cc:to:from:date; bh=y1xoItg8dftpr5DVXo1z+EowAj+17vEx9rUuFyJPLNg=; b=FLoxslI8DfivIZnOlLaUJU9Iu4mxRRJfR+yC+y9ZFT+JPNbFQnI+javguMGphAQy4h mo6iaLlLYntSr4H6ukCgspXYe26vT5+tDNXanT27uvHTKvG6ueQlyurw5zHkyTdgm6P3 3+GESab1nUTe2IAJkflnVxEPYF33PluLchzUzu6BeHl5U/v84mWwZ7j/SaMU4n6XlADo RgMGUir/D5NIf7ms1LiLgK4xKMfeV1QzCxegbLCvVuzhO1mkr3Jam8fPw1gAuT1QKMSo RfduU+iyHvHFP7BZzxu+Y5fCQXbXxZIGsEfha5NP27ZnsnV2B0u+vy31BBAhAOT3XzLD F7Bg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si22613317pgt.293.2018.11.14.09.42.13; Wed, 14 Nov 2018 09:42:40 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730822AbeKODoj (ORCPT + 99 others); Wed, 14 Nov 2018 22:44:39 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:51366 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725759AbeKODoj (ORCPT ); Wed, 14 Nov 2018 22:44:39 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-03.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gMz9K-00065w-GP from joseph_myers@mentor.com ; Wed, 14 Nov 2018 09:40:22 -0800 Received: from digraph.polyomino.org.uk (137.202.0.90) by SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 14 Nov 2018 17:40:19 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.90_1) (envelope-from ) id 1gMz9G-0004lr-LC; Wed, 14 Nov 2018 17:40:18 +0000 Date: Wed, 14 Nov 2018 17:40:18 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Andy Lutomirski CC: Szabolcs Nagy , Dave P Martin , Daniel Colascione , nd , Florian Weimer , "Michael Kerrisk (man-pages)" , linux-kernel , Joel Fernandes , Linux API , Willy Tarreau , Vlastimil Babka , Carlos O'Donell , "libc-alpha@sourceware.org" Subject: Re: Official Linux system wrapper library? In-Reply-To: <1C1B38FC-1266-4A91-B8F6-20A0C49ED1E2@amacapital.net> Message-ID: References: <877ehjx447.fsf@oldenburg.str.redhat.com> <875zx2vhpd.fsf@oldenburg.str.redhat.com> <20181113193859.GJ3505@e103592.cambridge.arm.com> <5853c297-9d84-86e5-dede-aa2957562c6b@arm.com> <1C1B38FC-1266-4A91-B8F6-20A0C49ED1E2@amacapital.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1152306461-174479658-1542217218=:16571" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ---1152306461-174479658-1542217218=:16571 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT On Wed, 14 Nov 2018, Andy Lutomirski wrote: > I’m not so sure it’s useless. Historically, POSIX systems have, in > practice and almost by definition, been very C focused, but the world is > changing. A less crufty library could be useful for newer languages: Historically, there was once an attempt to rework POSIX into a separate language-independent definition and language bindings (for C, Fortran, Ada etc.), but I don't think it got anywhere, and it's probably doubtful whether the idea was ever very practical. (See the introduction to POSIX.1:1990, for example: "Future revisions are expected to contain bindings for other programming languages as well as for the C language. This will be accomplished by breaking this part of ISO/IEC 9945 into multiple portions---one defining core requirements independent of any programming language, and others composed of programming language bindings.".) > > thread internals for syscalls that > > require coordination between all user created > > threads (setxid), > > We should just deal with this in the kernel. The current state of > affairs is nuts. Yes, we should have a few new syscalls to set these ids at the process level. -- Joseph S. Myers joseph@codesourcery.com ---1152306461-174479658-1542217218=:16571--