News for hackers. Stuff that matters.
Re:The State of Linux Security by snvzz on Thursday December 22, 2016 @02:42PM (#13239737)
Linux will always be insecure. There's no fixing millions of lines of code running in supervisor mode.

What will happen instead is that the world will move on to a microkernel-based OS.

Re:The State of Linux Security by zzzcpan on Thursday December 22, 2016 @06:13PM (#13241278)
There's also no rewriting millions of lines of code. There are a bunch of more realistic approaches, like making compilers much safer by default, sandboxing services, partially microkerneling critical pieces of code, for example: moving network stack out of the kernel and into the userspace with proper security measures, we even already have netmap to begin the process.
Re:The State of Linux Security by nickpsecurity on Thursday December 22, 2016 @06:35PM (#13241467)
Like what Criswell et al are doing with SVA-OS and CHERI team are doing with CheriBSD.
Re:The State of Linux Security by dispose13432 on Thursday December 22, 2016 @05:58PM (#13241167)
Counterexample - OpenBSD.

Even a micro-kernel won't help. Even there, you have a few "keys to the kingdom", such as compromising the HD driver (If I can write what I want, I can modify the micro-kernel how I want).

Re:The State of Linux Security by SEJeff on Thursday December 22, 2016 @03:39PM (#13240191)
Ok Mr Tanenbaum, Linus and you already had this argument </sarcasm>
Re:The State of Linux Security by rastapasta42 on Friday December 23, 2016 @02:40AM (#13243481)
Guys...All of you are irrelevant. Doesn't matter if one driver can access another. I just need to read data in user home directory and I can find out everything I need.

Or go to random website look for .Git folders, recreate directory structure from object file, get MySQL passwords and steal user data (I'm not responsible for anyone using my comment for illegal purposes)

Microkernals are supposed to make OSes more stable but they don't. Linux work good enough due to automated testing and amazing kernel engineers.

GNU Hurd, Mach 3, Minix - so far track record isn't good. Stop flamewaring and fire up vim. Write a microkernals if you think you can do a better job

Re:The State of Linux Security by snvzz on Friday December 30, 2016 @03:47PM (#13287303)
> Doesn't matter if one driver can access another. I just need to read data in user home directory and I can find out everything I need.

Well, you'd need the adequate permissions to do that in the firstr place.

Or you'd have to exploit the VFS (good luck with that), the disk driver (which is hidden behind VFS, good luck with that), or some other driver which hardware is for some reason not isolated via iommu (good luck with that).

> Linux work good enough due to automated testing and amazing kernel engineers.

You definitely do not run much Linux on production, else you'd know how amazing 2016 has been, regarding kernel vulnerabilities.

Some of them were even reliably exploitable on grsec/pax patched kernels.

> Microkernals are supposed to make OSes more stable but they don't.

Except most RTOSs and anything with high assurance requirements uses microkernels.

> GNU Hurd, Mach 3

Hurd uses Mach, a pre-liedtke, old world microkernel. Not really worth pointing at it, the same way 1971 UNIX isn't representative of Linux.

> Minix - so far track record isn't good.

Minix is doing quite well at what it set out to do: Fault-tolerance.

Re:The State of Linux Security by pjmlp on Thursday December 22, 2016 @04:56PM (#13240722)
And looking at embedded OSes, L4, sandboxing in Apple, Google and Microsoft OSes, the future direction is quite clear.
Re:The State of Linux Security by dispose13432 on Thursday December 22, 2016 @06:02PM (#13241194)
Does Apple run on a MicroKernel? Microsoft? Google definitely doesn't (it runs on linux).

The problems they solve are orthogonal to kernel issues.

Sandboxing thwarts userspace attacks (any program I install has access to my userspace). Microkernels solve kernel side attacks.

Re:The State of Linux Security by mtgx on Thursday December 22, 2016 @11:52PM (#13242924)
The real irony is that Android might as well run on a microkernel, considering no OEM has any intention of ever making their firmware work on anyone else's hardware. Everyone's ROMs would be more or less just as incompatible as they are now, but at least they'd be faster and much more secure at the kernel level.
Re:The State of Linux Security by dispose13432 on Friday December 23, 2016 @12:30AM (#13243059)
>but at least they'd be faster

The problem with microkernal's isn't compatibility, it's speed.

Re:The State of Linux Security by snvzz on Monday December 26, 2016 @12:42PM (#13259020)
Re:The State of Linux Security by pjmlp on Friday December 23, 2016 @09:37AM (#13244894)
QNX, Genode and L4 have solved that problem longtime ago.

The problems with microkernels are mostly urban legends.

Re:The State of Linux Security by dispose13432 on Friday December 23, 2016 @01:22PM (#13246326)
So why can't hurd get its act together?
Re:The State of Linux Security by snvzz on Monday December 26, 2016 @12:46PM (#13259037)
Because they're still using Mach, and most capable contributors moved on to microkernel-based projects that actually aren't hopeless.
Re:The State of Linux Security by pmoriarty on Friday December 23, 2016 @04:32PM (#13247327)
Lack of volunteers.
Re:The State of Linux Security by pjmlp on Friday December 23, 2016 @03:08PM (#13246935)
Lack of resources and manpower.
Re:The State of Linux Security by snvzz on Monday December 26, 2016 @12:41PM (#13259016)
Google's working on Fuchsia. This might be exactly their plan.
Re:The State of Linux Security by pjmlp on Friday December 23, 2016 @09:44AM (#13244931)
Yes all of them do depend on some form on microkernels.

It is called L4 and is responsible for the baseband communications and secure enclave.

https://en.wikipedia.org/wiki/L4_microkernel_family#Commerci...

Re:The State of Linux Security by huxley on Thursday December 22, 2016 @08:28PM (#13242066)
Apple uses XNU which is a hybrid kernel based on the Mach 3 microkernel

https://en.wikipedia.org/wiki/XNU

Re:The State of Linux Security by tossedaway334 on Thursday December 22, 2016 @11:29PM (#13242839)
OSX is effectively a microkernel in name only, its a microkernel with a single monolithic UNIX kernel client, and has virtually none of the advantages of a real microkernel setup with multiple clients sharing tasks.
Re:The State of Linux Security by xj9 on Thursday December 22, 2016 @04:19PM (#13240478)
L4Linux on Genode. Problem solved.
Re:The State of Linux Security by nickpsecurity on Thursday December 22, 2016 @06:39PM (#13241498)
Integrity PC, LynxSecure, and Turaya Desktop being commercial equivalents being sold now. Genode a dual-licensed work in progress. Minix 3 did it for availability with NetBSD layer.

Definitely proven to be doable but just few doing it.