Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp463723rdb; Sat, 17 Feb 2024 18:10:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUEXFwXfmi03vMjBzkQVhrVhRnlU0zfQukTVSq5vfrizSz9IDuV1OZuXNqPBEaPII8bE6wsBb4JgP5/Q4yg8gObRSk+4qNBjhRz3W36Gg== X-Google-Smtp-Source: AGHT+IFALUTJ12ah9F4iqH8ZOeEarkWJjcQGrstgMxwyhPaVyF5+TZ9OhGm889qezMLlaW4aFKaU X-Received: by 2002:a05:622a:1aaa:b0:42d:ff36:bdab with SMTP id s42-20020a05622a1aaa00b0042dff36bdabmr1969048qtc.26.1708222214787; Sat, 17 Feb 2024 18:10:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708222214; cv=pass; d=google.com; s=arc-20160816; b=Xcrz95GxyNduLlA0NMiI9u+mLkkqW25iSBKk9eOgaRcq9Zap1qsuxEFBRc7CVBEuwE fPGudnib6ptNTCGSUOZdmY56VGRjK0aUZ3izw1V4sCBFs3FT8pvqfUPtUpjPTGFCNkP+ aTUW2MT6u6pOpi14d9fmO9QKv330Ee1SW1K1V8PSLDgiMLg1nSko5mk13FTsPqX8afn4 E6IdquNZb0T/8WV+e14JhkTQROkInYIk8tnfZa+UAUzXF7OHOLfW3ancaAz4NXzJzrPw 2U8kn3Mnl7xGMbfvJ/SYhVsQpx7SDrhi84wN3Ugl24JsuMmPjPMqYU4tUlUCTNNzYTR/ /ePg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1L5+v7OBH94VXAhT9gGEjSneA+Vgh7K9gZNcifYCc80=; fh=YFip64qL/v3P/h6k4meKkYhrzuUty4v4It/cC0OuCSc=; b=0JxCbdv8JzAuEgaxnuaGcFOI7lJptYp7xmRah3+t6+1GCb/2S1tRBXl9Jv8DT56JAZ WefVSlAaH4MW/EJ1mowiki9PHK1+LYNCbpRL+TQNpqLz8Yd6BTP7pvDcPifs7HwUrpuV CN+tN4Q8FpUS2hBWhI26ssiQDsQcc0mvNsvyYMoYFlsJeW2SVWncJ5scaPymxjF6QCKe DeU46mVXoNpuG8QaMbvlcvVpSDXqAakI8X5DGOBpxmBQeDgJNDB974Mlhwt/FV8hVqqC pHiajV3yHu+lxJAXRJMqZ6R4TvTuatI+LA9LhOyrVdiO0Z2rxNsX5/n+oRHp7/iugPQP 87Tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DKSJtTBA; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-70108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70108-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e22-20020a05622a111600b0042be7c435casi3669857qty.763.2024.02.17.18.10.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 18:10:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DKSJtTBA; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-70108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70108-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 353451C21206 for ; Sat, 17 Feb 2024 22:31:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96A017CF29; Sat, 17 Feb 2024 22:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="DKSJtTBA" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B85E47B3EA; Sat, 17 Feb 2024 22:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708209100; cv=none; b=Ce30GfuBKOaoey96h3qbU6Nd8fEnF1z/R+Rm4HMIgHaTwxXNS5T4Q0v33kJEaRlIo8KogohQ/ti2S8sFHSeRygbzvWUsoMFhBkRD5dKZpLs+Tk4EYOr1UzwT16cmvsNTYZxuqCmuVt4M10PQsulhxlPxEyoRQCDoYIFzvxagUng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708209100; c=relaxed/simple; bh=ybGYd3rkq0s1hALMfpQk6n3C/edebolky5vSvPyxlIY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SuUXCXCs5VHIXPeywqYB3LGIT2cik8b38b84l+ECRATm+4Qv3C1V7fr8wOJfQsgUlj0DOL3bzHS1ayvBVuCzp/MfXVfysTSSTH33o6SUGvef3ZIcGwV6YtJtZJzI8qQyBhufV3nQRYvwDuJRLDROrVmy+5dl4FCnM5n/k6eQtRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=DKSJtTBA; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1L5+v7OBH94VXAhT9gGEjSneA+Vgh7K9gZNcifYCc80=; b=DKSJtTBAkswcEe7Kk2lO3rR4Lk WQWPIevzHKMWJSC7wA9zx3XPh45lG/eo55hW87G0yTnqR/UxCam5NdReiafiYJatVdUeQVsWe1/g5 aQLjvRXAzE8IDhVRImnDXZLzyMxv+DgPAPLn7L/S5p6GblfXsBl0t9JlzQ9pmMISCoVGUYk7f9cWb GSnzl8uX7Wxc/4GUJx/nKssfxIzN4JF1TYoVh8tfYG/V4hBafyLRhb/9UE5faVMREqSUw6VxBOM5o hfeSr6FuL9hLBBz3yBlQri83nyhnjARgvfOIpmXOx13lNNio/ERDs8OW7RD4vFxSIC0krR5cR+3/k usUPrjgA==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbTDV-00000008YDo-44mW; Sat, 17 Feb 2024 22:31:30 +0000 Date: Sat, 17 Feb 2024 22:31:29 +0000 From: Matthew Wilcox To: Kent Overstreet Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, lsf-pc@lists.linux-foundation.org Subject: Re: [LSF TOPIC] beyond uidmapping, & towards a better security model Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Feb 17, 2024 at 03:56:40PM -0500, Kent Overstreet wrote: > AKA - integer identifiers considered harmful Sure, but how far are you willing to take this? You've recently been complaining about inode numbers: https://lore.kernel.org/linux-fsdevel/20231211233231.oiazgkqs7yahruuw@moria.home.lan/ > The solution (originally from plan9, of course) is - UIDs shouldn't be > numbers, they should be strings; and additionally, the strings should be > paths. > > Then, if 'alice' is a user, 'alice.foo' and 'alice.bar' would be > subusers, created by alice without any privileged operations or mucking > with outside system state, and 'alice' would be superuser w.r.t. > 'alice.foo' and 'alice.bar'. Waitwaitwait. You start out saying "they are paths" and then you use '.' as the path separator. I mean, I come from a tradition that *does* use '.' as the path separator (RISC OS, from Acorn DFS, which I believe was influenced by the Phoenix command interpreter), but Unix tends to use / as the separator. One of the critical things about plan9 that means you have to think hard before transposing its ideas to Linux is that it doesn't have suid programs. So if I create willy/root, it's essential that a program which is suid only becomes suid with respect to other programs inside willy's domain. And it doesn't just apply to filesystem things, but "can I send signals" and dozens of other things. So there's a lot to be fleshed out here.