News for hackers. Stuff that matters.
Re:Alan Kay on “Should web browsers have stuck to being docu... by mikewarot on Sunday January 08, 2023 @09:47PM (#34306107)
If our operating systems didn't blindly trust programs, we wouldn't need web browsers as a special category of interface.

You could just put your binaries up for the major OSs to access your data, and people could use them in a native context.

Alas, we're in the timeline without capability based security. where users can't just give a file to a program at runtime using a (powerbox) dialog.

Re:Alan Kay on “Should web browsers have stuck to being docu... by spankalee on Sunday January 08, 2023 @10:03PM (#34306222)
Fuchsia is be incredibly interesting for this reason.
Re:Alan Kay on “Should web browsers have stuck to being docu... by wolverine876 on Monday January 09, 2023 @01:39AM (#34307516)
How so?
Re:Alan Kay on “Should web browsers have stuck to being docu... by spankalee on Monday January 09, 2023 @12:06PM (#34312643)
Because Fuchsia is exactly a capabilities-based OS as the OP describes.
Re:Alan Kay on “Should web browsers have stuck to being docu... by mikewarot on Tuesday January 10, 2023 @01:14AM (#34321161)
If Fuchsia ever appears as an end user operating system, this might be true.
Re:Alan Kay on “Should web browsers have stuck to being docu... by drewcoo on Sunday January 08, 2023 @11:30PM (#34306767)
I don't understand.

What is the security model you propose?

With at least two examples, please. To help me understand.

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @12:01AM (#34306946)
Maybe as a starter:

https://en.wikipedia.org/wiki/Capability-based_security

For examples have a look at the "Implementations" section.

Re:Alan Kay on “Should web browsers have stuck to being docu... by nine_k on Monday January 09, 2023 @07:45AM (#34309711)
When you download a program from the internets, it does not have access to any of your stuff. Can't read files. Can't make network requests. Can't access cameras or microphones.

You explicitly give it permissions to access something: give it a document you want to edit, allow it to save a result at some location (without giving it an idea what else exists at that location), allow it to connect to certain hosts on the internet, but not others, politely decline a request to use your camera, etc.

Very much like you do with a web app running in your browser.

Re:Alan Kay on “Should web browsers have stuck to being docu... by ModernMech on Monday January 09, 2023 @08:34AM (#34310116)
Another example: you have a printer, a printer server, and N clients connected to the server. You send a capability to the clients that grants them usage of the printer. That capability allows them to print at certain time in black and white only, but the marketing department gets a capability that allows them to print in color.

Your customer comes to the office comes and wants to use the printer while he’s there, so you use your capability to send them a capability that will give them access to the printer (b/w only still, they can’t get color because you can’t get color) for an hour. However their capability is restricted such that they will not be able to grant anyone else access to the printer

Re:Alan Kay on “Should web browsers have stuck to being docu... by mikewarot on Monday January 09, 2023 @04:20PM (#34316238)
Example 1

Take $5 from your wallet to pay for a sandwich. That bill is a capability.

You can't accidentally give away your car when you do it. You can easily delegate the giving of the $5 to someone else safely.

Example 2

Take a file on a floppy disk for an IBM XT and make a backup of it. You can hand that backup disk to anyone and your original is safe.

You can use that file with any random shareware disk from your user group meeting and in no way could it cause you any more loss than the disk in it is on.

A disk is a capability.

Example 3

You are asked your location. You reply correctly.

The answer does not allow you to be tracked forever.

Example 4

You have a 15 amp outlet. You can't take down the power grid by accident, nor burn down the house. The outlet is a 15 amp capability.

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Sunday January 08, 2023 @11:51PM (#34306878)
>Alas, we're in the timeline without capability based security

Mobile operating systems (aka modern personal computing) say hello.

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Sunday January 08, 2023 @11:59PM (#34306933)
No, that's not the same.

There is no capability security on the OS level.

Otherwise Android wouldn't have a malware issue and iPhones wouldn't need to be locked up against third party apps.

Re:Alan Kay on “Should web browsers have stuck to being docu... by ljm on Monday January 09, 2023 @12:05AM (#34306974)
Have you considered that an approval process is one aspect of a capability solution?

You know, the same way that you ask for code review before merging to prod.

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @12:23AM (#34307078)
No, I didn't as this makes no sense, that's not what this technical term describes.

I've liked Wikipedia on that topic already in this thread. Please take a look.

Re:Alan Kay on “Should web browsers have stuck to being docu... by loup-vaillant on Monday January 09, 2023 @03:40AM (#34308126)
Not in the direct ancestors of this comments you haven't. When referring to cousin comments like this one https://news.ycombinator.com/item?id=34306946 it's generally a good idea to put a link to them instead of having us dig through the whole discussion (I literally had to [Ctrl-F] your handle).

And for bystanders, here's the Wikipedia link: https://en.wikipedia.org/wiki/Capability-based_security

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @01:35PM (#34314110)
Thanks for the pointer!

My reasoning was that it would be rude to link to myself, to a comment that showed up at this time just on the same screen as this one.

But I guess you're right. A link would not hurt, but make it more easy to discover the mentioned content.

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @01:53AM (#34307571)
Yes, it is. Try and read GPS data without asking the operating system for that capability. Even if you call to native code there is no way to trick the operating system into giving you that data. Malware can't get it either because the security IS on the OS level.

>Otherwise Android wouldn't have a malware issue and iPhones wouldn't need to be locked up against third party apps.

Android malware is not as bad as what is possible with Windows malware. Over the years Google has been cracking down and working to remove permissions that apps can use without the user knowing. Unless the app has an exploit for the operating system it can't do much harm to you. iPhones have allowed for third party apps since the very first iphone a decade and a half ago.

Re:Alan Kay on “Should web browsers have stuck to being docu... by tonyg on Monday January 09, 2023 @05:39AM (#34308892)
> Try and read GPS data without asking the operating system for that capability.

That's not capability-based security: you have to do that whichever model is in use. The ocaps come in when you use dependency injection (aka "function call") everywhere to pass in rights to make use of resources. Neither Android nor iOS are meaningfully object-capability based.

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @09:59AM (#34311037)
Yes, it is. Capability based security by definition just requires that apps have a list of a capabilities and those capabilities govern what APIs / resources it has access to. There is no requirement of dependency injection. That is an implementation choice.
Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @01:45PM (#34314263)
> just requires that apps have a list of a capabilities and those capabilities govern what APIs / resources it has access to

No, that would be mandatory access control. Completely different concept.

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @02:16PM (#34314645)
You seem to be getting caught up with the implementation details. The whole point is that programs shouldn't be given overly broad access to the system. Access can be granted to programs by giving them capabilities. Whether that be from tokens or something else it doesn't matter.

Please remember from the first commented:

>Alas, we're in the timeline without capability based security. where users can't just give a file to a program at runtime using a (powerbox) dialog.

This is literally how Android already works today. An app can not read a random file from the system. It has to open a file selector and you have to select a file before an app is able to read it.

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @02:51PM (#34315083)
> This is literally how Android already works today. An app can not read a random file from the system. It has to open a file selector and you have to select a file before an app is able to read it.

That's not implemented on the OS level.

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @03:17PM (#34315392)
>That's not implemented on the OS level.

Yes, it is. The Storage Access Framework is a part of the operating system.

Re:Alan Kay on “Should web browsers have stuck to being docu... by chriswarbo on Monday January 09, 2023 @05:41AM (#34308911)
> Try and read GPS data without asking the operating system for that capability

Generally speaking, capabilities are not asked for; that would be a permission.

Capabilities can be used to implement permissions, but that's not what is usually meant by 'capability-based security'. Capabilities are essentially just inputs; a GPS-reading capability would be anything we can read GPS data from (e.g. a callback; or a pseudo-file handle; etc.).

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @09:56AM (#34311000)
Capabilities and permissions are the same thing. The app needs a capability or permission for it to use an API. The whole point is that an app should have permission or the capabilities to the minimum amount of things in order for it to work.
Re:Alan Kay on “Should web browsers have stuck to being docu... by chriswarbo on Monday January 09, 2023 @12:34PM (#34313039)
Capabilities are needed to "do" things; e.g. the URL of a document is a capability to GET it (via HTTP, or whatever). Without a URL (capability), performing a GET doesn't even make sense.

Security is enforced by choosing who is given a capability (like a URL); we can get extra security by minting new capabilities, and revoking those which should no longer have access.

Permissions are not required to "do" things; they are enforced elsewhere, to determine whether that thing should succeed or fail. For example, giving out URLs to anyone who asks, then trying to have the server reject requests that we don't want (AKA 'closing the barn door after the horse has bolted')

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @02:09PM (#34314567)
Android's binder seems to be exactly what you are talking about. A binder object represents a token for something you can send and receive transactions. You use binder to talk to LocationManagerService which lets you get the location. Android has a service manager and lets any app get the LocationManagerService. LocationManagerService itself does do the permission checks.

The operating system uses both capabilities and permissions.

Regardless, this is all implementation details and for the user it is equivalent. There is the same principle of least privilege where apps are limited in what they can do.

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @02:43PM (#34314970)
> The operating system uses both capabilities and permissions.

No, that's still wrong.

The Android framework uses something that goes a little bit in the direction of capabilities.

But the Android framework / runtime runs (by now) on an OS (Linux) that is not capability safe.

> Regardless, this is all implementation details and for the user it is equivalent.

No, of course not.

On a capability secure OS your mouse driver can't read the disk or do network request. Even if you would find an exploit in the driver.

That's a completely different level of security!

It's a fact that there is still no capability secure OS out there in broad use. (Fuchsia could be the first that brings this concept into mainstream. But this will take time. Also Fuchsia isn't as strict as it could be, for different reasons).

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @01:43PM (#34314233)
> Capabilities and permissions are the same thing.

No, that are two fundamentally different concepts.

A capability is something that needs to be hold and passed to every call. If you can't show the needed capability (because you don't own it, in the sense that you're holding a special kind of object in your hands) you can't preform an action. On the very basic level: You just can't call a function because it needs a parameter of capability type.

This is fundamental different to permissions. Permissions are checked by the called code. You don't need to "pass a permission" alongside the actual action you try to perform.

Please read up at least the Wikipedia page as you seem to have some severe misconception about this topic: https://en.wikipedia.org/wiki/Capability-based_security

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @02:34PM (#34314875)
You are getting too hung up on the implementation details.

Capability based security means that applications are very limited in what they can do by default and need to be given capabilities in order to do something. Yes, one way to give an application a capability is by representing that capability by a token, but another way to give an application a capability is by giving it a permission.

If you want the term to refer to a specific implementation ignoring that it is identical from the end user's perspective then I'm fine in conceding.

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @02:49PM (#34315043)
Dude, what's your problem? Are you trolling?

> A capability (known in some systems as a key) is a communicable, unforgeable token of authority.

That's verbatim the second sentence on Wikipedia!

That's not "an implementation detail", it's core of the whole concept.

> Capability-based security is to be contrasted with an approach that uses traditional UNIX permissions and Access Control Lists.

> Although most operating systems implement a facility which resembles capabilities, they typically do not provide enough support to allow for the exchange of capabilities among possibly mutually untrusting entities to be the primary means of granting and distributing access rights throughout the system. A capability-based system, in contrast, is designed with that goal in mind.

Re:Alan Kay on “Should web browsers have stuck to being docu... by qu4z-2 on Monday January 09, 2023 @05:00PM (#34316818)
We are using "capability" as a term of art here. Frankly, I'm not sure there is even a colloquial meaning of "capability-based security". Approximately no-one uses that phrase unless they're talking about capability-based security, the specific approach to managing access. In the same way that no-one calls functional programming "object-oriented programming" because "objects are just anything that exists and functions exist".
Re:Alan Kay on “Should web browsers have stuck to being docu... by anthk on Monday January 09, 2023 @07:11AM (#34309453)
You can fake GPS data. Also, capabilities are far beyond the Android and iOS model.
Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @10:10AM (#34311157)
I don't understand your point. In capability based security nothing prevents people from making up fake data if they don't have the capability for something.
Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @01:49PM (#34314307)
> In capability based security nothing prevents people from making up fake data if they don't have the capability for something.

That's completely wrong.

The whole point of capabilities is that they're unforgeable.

You can't mint a capability! You need to get it passed "form above". Nobody can create capabilities from thin air (not even the OS kernel).

Re:Alan Kay on “Should web browsers have stuck to being docu... by charcircuit on Monday January 09, 2023 @02:12PM (#34314592)
I do not follow your logic. Anyone can define a data type { latitude: 100. longitude: 100 }. The operating system is not going to stop you from creating this object.
Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @02:56PM (#34315138)
Such a made up object would not be accepted by other parts of a capability secure system as it would lack the actual capability (which is unforgeable).

But I'm coming to the conclusion that you're only trolling. You refuse to look at the facts and definitions, and just repeat the same nonsense over and over. I'm done here as I obviously can't help you understand this topic.

Re:Alan Kay on “Should web browsers have stuck to being docu... by gpcz on Monday January 09, 2023 @11:51AM (#34312466)
SeL4 uses capability-based security, but unfortunately it's not in common use.
Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @01:33PM (#34314079)
seL4 has a different "issue": The actual OS is missing… ;-)

seL4 is just the core of a micro kernel. The hard part would be to build an OS around that.

Re:Alan Kay on “Should web browsers have stuck to being docu... by sp332 on Monday January 09, 2023 @12:03AM (#34306962)
It's moving that way. Even WASM is expanding out of browsers with WASI.
Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @12:26AM (#34307100)
Only to bring us back to Unix legacy APIs.

Don't get me wrong, WASM is a nice idea with some nice properties. But WASI isn't a real improvement to the status quo in general.

Re:Alan Kay on “Should web browsers have stuck to being docu... by sunfish on Monday January 09, 2023 @06:40AM (#34309252)
Not yet, at least. But we're working on that :-).
Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Monday January 09, 2023 @01:28PM (#34313998)
Honest question: How can this work out if the legacy APIs are still at the bottom?
Re:Alan Kay on “Should web browsers have stuck to being docu... by sunfish on Monday January 09, 2023 @07:14PM (#34318463)
It depends on what you mean by "at the bottom".

If you mean at the bottom of the wasm, the the answer is, those won't be legacy APIs. The direction we're heading is to provide POSIX compatibility as an emulation layer on top of a cleaner foundation, rather than just doing POSIX at the base layer.

If you mean that all Wasm engines today are implemented on top of traditional operating system APIs, then yes, that is how things will often work, but that's ok. What really matters is how the virtual platform works. We don't have to expose things like "the filesystem namespace" directly to wasm, even if it's present in the host. And if we don't expose "the filesystem namespace", then we don't have the associated problems, even if the underlying host has them.

Re:Alan Kay on “Should web browsers have stuck to being docu... by still_grokking on Tuesday January 10, 2023 @12:00PM (#34327849)
> The direction we're heading is to provide POSIX compatibility as an emulation layer on top of a cleaner foundation, rather than just doing POSIX at the base layer.

What's that "cleaner foundation"?

Next thing is: POSIX is the legacy stuff. If it's there nothing will change.

And not even to mention that the stack is going to look something like:

Hardware >> Hardware emulating some ISA (e.g. x86) >> C abstract machine >> POSIX >> VM emulating some ISA >> "container" emulating POSIX >> WASM VM >> emulation of POSIX APIs >> legacy applications written for some ISA & POSIX

I call this construct "layers of madness"… ;-)

Re:Alan Kay on “Should web browsers have stuck to being docu... by sunfish on Wednesday January 11, 2023 @10:04AM (#34339184)
That cleaner foundation is shared-nothing linking, capability-based security, virtualizable APIs, and more, and a WASI organized around things like streams as first-class types.

The goal is to build a new platform. Initially, that looks like adding layers on top of existing platforms (which, as you say, already have multiple layers). If we succeed, then we get to start taking out some of the layers.

Re:Alan Kay on “Should web browsers have stuck to being docu... by krapp on Monday January 09, 2023 @05:49AM (#34308960)
WASM was designed to be used outside of browsers from the beginning.
Re:Alan Kay on “Should web browsers have stuck to being docu... by ako on Monday January 09, 2023 @01:49AM (#34307553)
Wouldn’t capability based security just bring you the current situation on mobile phones where most users simply approve access as they have no clue what is being asked, nor do they have real alternatives?
Re:Alan Kay on “Should web browsers have stuck to being docu... by Kinrany on Monday January 09, 2023 @03:20AM (#34308016)
There is no alternative. Mobile devices and browsers are equivalent to a locked down mode where the user is only allowed to approve a restricted set of capabilities.
Re:Alan Kay on “Should web browsers have stuck to being docu... by loup-vaillant on Monday January 09, 2023 @03:32AM (#34308091)
Cluelessness have been catered to to insane degrees in the name of sales, and users are now used to just clicking through whatever pops up until they see the thing they want to see. But if (1) they'd been properly taught, (2) apps asked only for the permissions they need instead of acting like all your data are belong to them, and (3) people actually read those damn pop ups (which they might have if there weren't so many)… capability based security is actually fairly easy to understand.
Re:Alan Kay on “Should web browsers have stuck to being docu... by tonyg on Monday January 09, 2023 @05:35AM (#34308854)
No: one possible alternative interaction would be the user handing the program a representation of an instance of the class of object requested. For instance, if the program wants a camera, it says "drag and drop a camera here". The user picks up a camera object - maybe the real camera, maybe a proxy for the real camera that will only work once to take a single photo, maybe a dummy camera, the app can't tell - and drops it on the region.
Re:Alan Kay on “Should web browsers have stuck to being docu... by coldtea on Monday January 09, 2023 @06:53AM (#34309338)
So? Nothing really changes with this scheme, compared to "Allow camera access" banner.
Re:Alan Kay on “Should web browsers have stuck to being docu... by ModernMech on Monday January 09, 2023 @07:44AM (#34309699)
It’s different in that with capabilities the choice is no longer allow/deny, but allow/deny/circumvent. The allow/deny choice makes it so that the user is incentivized to allow things they don’t want just to get access to the app. If I can’t use the app without giving it access to my location, then I’m incentivized to just give it access in order to get what I want. Capabilities let you programmatically customize how to manage resources, so you’re not forced to click through just to get to the app.

Furthermore, capabilities are more fine-grained. Today an app will ask for your location and you get to choose yes/no. If you say yes, it has full access to the GPS forever until revoked, sometimes in the background. Give it network access and it has that forever as well, and it can send anything to anyone (including the GPS data you just gave it access to.)

Capability based security would allow you to give it access to the GPS for a limited time, or to give it access to a sensor spoofing service if it really needs that data. If you give it network access it would be for certain times, or it could only send data to a whitelist of servers.

Moreover you can restrict the app from sharing granted capabilities to other apps. Or vice versa, you can delegate apps to work on your behalf and share capabilities with other apps, which you can later centrally revoke or restrict.

It’s really a better security regime than what the major operating systems have ossified around.

Re:Alan Kay on “Should web browsers have stuck to being docu... by TeMPOraL on Monday January 09, 2023 @08:20AM (#34309985)
Unfortunately we know now it wouldn't have helped much in practice. Take your GPS example: you can spoof GPS on Android, globally or per-app. Of the apps that are actually useful, many (most?) of the ones that want/need location data will attempt to detect GPS spoofing and deny you service until you turn it off.

And lest you think you can work around this by rooting your phone, an increasing number of actually useful apps refuse to run on rooted devices, "because security", and Google is actively helping this by making available an API that streamlines those checks.

Capability-based security is a good idea, but like all security technology, it only helps the owner of a device, and who is the owner of a device in any given context is a contested topic, with platforms, vendors, manufacturers and users all having a different opinion about it.

Re:Alan Kay on “Should web browsers have stuck to being docu... by pabs3 on Monday January 09, 2023 @09:22PM (#34319554)
How do they detect the GPS spoofing?
Re:Alan Kay on “Should web browsers have stuck to being docu... by ako on Monday January 09, 2023 @01:05PM (#34313584)
That’s way too cumbersome for a user, I wouldn’t use it. I simply want an app that I can trust. If I use it to send a picture, obviously it should have access to the camera. But it shouldn’t be able to send that image to a destination unrelated to my use case.
Re:Alan Kay on “Should web browsers have stuck to being docu... by ModernMech on Monday January 09, 2023 @03:08PM (#34315283)
> I simply want an app that I can trust.

Sure, we all want that, but we’ve learned that trusting apps does not scale. Even if you like an app and trust it, it can be updated to break that trust. Capability based security puts you in control so you don’t have to rely on trust.

> But it shouldn’t be able to send that image to a destination unrelated to my use case.

Capability based security could do this, and you don’t have to trust anyone to implement that feature for you (or to not silently remove it via an update). You would create a capability that would require camera and network access. Any app that needs both resources could take such a capability and be restricted in where it can send photos.

Re:Alan Kay on “Should web browsers have stuck to being docu... by steponlego on Monday January 09, 2023 @08:24AM (#34310015)
It's on them if they're dumb or lazy enough to do that.
Re:Alan Kay on “Should web browsers have stuck to being docu... by mikewarot on Monday January 09, 2023 @08:45AM (#34310216)
A $5 bill in your wallet is a capability. Capability based security is like handing someone $5, not eternal access to all the funds in your wallet.

Phones don't do capability based security. There's no way to say, here... you can have access to THIS photo, or this location, once, in an easy way.

On PCs, you have to trust the application to do what it says when it uses the system supplied dialog boxes to "open" files, etc. In a capability based system, that's not the case. The OS never trusts the application, ever.

Re:Alan Kay on “Should web browsers have stuck to being docu... by guessbest on Monday January 09, 2023 @11:51AM (#34312459)
MacOS is doing this.
Re:Alan Kay on “Should web browsers have stuck to being docu... by mikewarot on Tuesday January 10, 2023 @01:13AM (#34321156)
This does not appear to the case. There is no reference to single file run-time assignment of capabilities in their security page[1]

"Give X permission to access Y forever" is not capability based security.

[1] https://www.apple.com/macos/security/

Re:Alan Kay on “Should web browsers have stuck to being docu... by ako on Monday January 09, 2023 @01:06PM (#34313609)
iOS is doing this: always grant permission for this capability, only when I use the app, or only once.
Re:Alan Kay on “Should web browsers have stuck to being docu... by Tagbert on Monday January 09, 2023 @02:18PM (#34314675)
in iOS you can grant apps access to a limited set of photos though the process is multi-step and most users probably just default to "allow all".
Re:Alan Kay on “Should web browsers have stuck to being docu... by mikewarot on Monday January 09, 2023 @10:56AM (#34311756)
This grumpy old man made a video, just made for this reply

https://www.youtube.com/watch?v=kFRy4IwUNog

Phones do not do capability based security, they could, but they OS doesn't offer that as a possibility, we get the low rent knock-off imitation instead.

Re:Alan Kay on “Should web browsers have stuck to being docu... by blippage on Tuesday January 10, 2023 @05:18AM (#34322724)
I share his sentiments.

We keep layering more and more gloop on the web. It will always be a game of wack-a-mole.

It's like Windows requires TPM, but then gives itself permission to snoop at your files. Or we have oauth, but then github is cracked to reveal the private keys. And so on and so forth, etc. ad nauseam. The clowns at Microsoft, Facebook and Google simply can't be trusted. They've proven that time and time again.

Security is better obtained "via negativa" (to quote from Taleb). Be parsimonious in what you allow. Keep things simple. If you don't really need security, then don't have it.

Re:Alan Kay on “Should web browsers have stuck to being docu... by mike_hearn on Monday January 09, 2023 @04:55AM (#34308608)
Actually all operating systems support PowerBoxes these days. It's an automatic part of the macOS Sandbox, it's a part of the FlatPak sandbox and there's an equivalent for Windows too. You can also implement this yourself the way browsers do because every OS supports the sending of file descriptors and handles to other processes, and they all support kernel level sandboxing now.
Re:Alan Kay on “Should web browsers have stuck to being docu... by telotortium on Monday January 09, 2023 @02:13PM (#34314614)
For people who (like me) have never heard the term "powerbox", it's this: http://wiki.c2.com/?PowerBox