News for hackers. Stuff that matters.
Re:A solution for enabling UDP in the web by peterwwillis on Sunday February 26, 2017 @09:43PM (#13741441)
Answer: a browser was for traversing hypertext documents. UDP basically is not good for this.

Now a browser is just an abstracted operating system. So, fuck it, I guess, let's add a second TCP/IP stack.

Re:A solution for enabling UDP in the web by benaadams on Sunday February 26, 2017 @09:52PM (#13741480)
More like TCP/IP is not good for data where only the current state is relevant and old state can be discarded: live video, games, stock prices...

The browser is used for all these things; why not have a protocol that works for these scenarios?

(Client<->Server; WebRTC and ObjectRTC are p2p orientated and excessively complex due to this as discussed in article)

Re:A solution for enabling UDP in the web by fulafel on Monday February 27, 2017 @12:26AM (#13742094)
Since the P2P feature set is a superset of the client-server feature set, it would only increase complexity in the browser to add another protocol for the client-server feature set.
Re:A solution for enabling UDP in the web by dragonshed on Monday February 27, 2017 @12:26AM (#13742095)
ObjectRTC? That's a new one..
Re:A solution for enabling UDP in the web by geofft on Sunday February 26, 2017 @10:08PM (#13741558)
The browser is a much better multi-user operating system than the actual operating systems people tend to use. A video game on the average Windows, Mac, or Linux desktop has full read and write access to the memory of a tax app on the same desktop, defeating the entire point of memory protection. If the game and the tax app are in a browser (or in a mobile OS, to their credit), this isn't so.

That desktop OSes happen to be called "desktop OSes" and web browsers happen to be called "web browsers" is fairly irrelevant to what they're actually good at. Desktop OSes make great hardware abstraction layers, just as server OSes make great hardware abstraction layers for virtualization platforms. But they're fundamentally misdesigned for much of anything else.

Re:A solution for enabling UDP in the web by AnthonyMouse on Sunday February 26, 2017 @11:02PM (#13741777)
Desktop operating systems have the capacity to do this; "server operating systems" (which are just desktop operating systems configured differently) already do this.

You run each program as a different user account. The HTTP daemon doesn't run as the same user as the DNS daemon even if they're on the same machine.

This is obviously annoying on a desktop because you have to use user switching to use another app. It would be better if desktop operating systems provided native support for it so that user accounts had a sub-account per app and apps automatically ran like that, and then a permission prompt if one app tries to access another app's files, which you can grant as one-time access or permanently.

Then you expect your email program to try to access a document you're attaching to an email, but if a video game tries to read your tax returns you can be appropriately suspicious.

Re:A solution for enabling UDP in the web by geofft on Monday February 27, 2017 @12:34AM (#13742116)
Correct. This is a design problem, caused by building ill-suited interfaces. (This isn't a criticism of the people who designed the interfaces; we simply didn't have the depth of experience when UNIX and Win32 and their predecessors were designed, and now we're stuck with compatibility for those.)

The interface between a web page and the outside world allows it to do things like access its site and not others, request a particular file be opened, send structured messages to other sites that wish to opt in to such access, etc.

The interface between a process and the outside world gives it either TCP sockets on behalf of the machine, or nothing at all; either the ability to open any file as the current user, or nothing at all.

I used to be excited about proposals for desktop operating systems to provide sandboxing via multiple UIDs and native interfaces for passing files around and powerboxes and all of that good stuff. Then I realized that the web platform does all of that and is very widely adopted and well-tested, and there's no hope of the existing platforms catching up.

I used to have two user accounts, one of which was allowed to run the Flash plugin so I could listen to music, and one of which held my important work. Then the web folks figured out how to sandbox the Flash plugin without requiring me to Ctrl-Alt-F8 to pause a song. Then they figured out how to not use a native-code plugin at all.

I don't particularly like this conclusion in an abstract sense, but it's certainly let me get on with getting things done instead of hoping for a future that will never come.

Re:A solution for enabling UDP in the web by misterdata on Monday February 27, 2017 @01:57PM (#13746773)
This is more or less what the sandbox mechanism on macOS does today. Unless a sandboxed app was given special entitlements from Apple, it can only access files that were brought into the sandbox at some point (for instance by selecting it in an 'open file' dialog, aka 'powerbox').
Re:A solution for enabling UDP in the web by leni536 on Monday February 27, 2017 @05:06AM (#13743130)
Firejail is an other good approach.
Re:A solution for enabling UDP in the web by grumpynumpy on Sunday February 26, 2017 @10:29PM (#13741641)

  A video game on the average Windows, Mac, or Linux desktop has full read and write access to the memory of a tax app on the same desktop
What? No...
Re:A solution for enabling UDP in the web by richardwhiuk on Sunday February 26, 2017 @10:49PM (#13741731)
Not the in process memory, but yes to the stored data, which is arguably as bad.
Re:A solution for enabling UDP in the web by skissane on Sunday February 26, 2017 @11:25PM (#13741858)
On Linux, generally speaking yes to reading the in-process memory too.

I can read /proc/$PID/mem provided my UID = the effective UID of the process.

Or I can also use ptrace(), again if my UID = the effective UID of the process, both to read the processes' memory and even to modify its code at runtime.

(Some LSMs will block this...)

Re:A solution for enabling UDP in the web by felixgallo on Sunday February 26, 2017 @11:37PM (#13741895)
What? No...
Re:A solution for enabling UDP in the web by ReverseCold on Monday February 27, 2017 @10:36AM (#13744941)
Many games on Windows even ask for administrator to run (or update), so that's already game over from a security perspective.
Re:A solution for enabling UDP in the web by fulafel on Monday February 27, 2017 @12:10AM (#13742032)
Debugging APIs.
Re:A solution for enabling UDP in the web by kalleboo on Monday February 27, 2017 @04:20AM (#13742957)
If you stick to App Store (sandboxed) apps on the Mac, you're safe from this. Those apps only have access to files explicitly opened by the user (through the system open file dialog, drag & drop, etc)