mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Kent Overstreet <kent.overstreet@linux.dev>
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
Date: Sat, 17 Feb 2024 22:31:29 +0000	[thread overview]
Message-ID: <ZdEzwTrJV-aQ1CqV@casper.infradead.org> (raw)
In-Reply-To: <tixdzlcmitz2kvyamswcpnydeypunkify5aifsmfihpecvat7d@pmgcepiilpi6>

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.

  reply	other threads:[~2024-02-17 22:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-17 20:56 Kent Overstreet
2024-02-17 22:31 ` Matthew Wilcox [this message]
2024-02-17 22:54   ` Kent Overstreet
2024-02-19 14:26 ` James Bottomley
2024-02-21  0:25   ` Kent Overstreet
2024-02-21  0:56     ` Stéphane Graber
2024-02-21  1:01       ` Kent Overstreet
2024-02-21  1:22     ` Matthew Wilcox
2024-02-21  2:07       ` Kent Overstreet
2024-02-21  2:15       ` NeilBrown
2024-02-29  8:51         ` Shyam Prasad N
2024-02-21  3:53     ` James Bottomley
2024-02-21 23:01       ` Kent Overstreet
2024-02-22  0:33         ` James Bottomley
2024-02-22  3:37           ` Kent Overstreet
2024-02-22  8:45             ` James Bottomley
2024-02-22 11:53               ` Kent Overstreet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZdEzwTrJV-aQ1CqV@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®