News for hackers. Stuff that matters.
Re:HardenedLinux: The way to the Ark by d33 on Monday May 01, 2017 @05:55AM (#14236491)
This is terribly unfortunate. By the way, could someone comment on why major distributions didn't use grsecurity code in their main kernel packages (or at least provide hardened-) ones? Maintenance cost or something else?
Re:HardenedLinux: The way to the Ark by viraptor on Monday May 01, 2017 @06:49AM (#14236665)
You can't really ship all of the grsec, because some compile time settings break userspace apps. Other options disable things you want on laptops, like power management registers. Basically your need to opt-in to grsec and you need to know what to configure afterwards. Or enable only selected few features and not get the whole protection.

On top of that, you can't use the latest kernel version until grsec is ported to it. And probably more reasons I don't know about yet. Basically, it's not one-size-fits-all solution - Ubuntu would create more problems than solutions if they just dumped it on users by default (or at least without a proper migration path with lots of deprecation time).

Re:HardenedLinux: The way to the Ark by staticassertion on Monday May 01, 2017 @09:30AM (#14237297)
> You can't really ship all of the grsec, because some compile time settings break userspace apps. Other options disable things you want on laptops, like power management registers. Basically your need to opt-in to grsec and you need to know what to configure afterwards. Or enable only selected few features and not get the whole protection.

The vast majority of features are 'set and forget'. Most will not break userland, or have extremely low FP rates. I can think of only one or two that have a high FP rate (integer overflow plugin) that would not be enabled by default. After all, these patches tend to make it into upstream under another name in ~10 years or so.

> On top of that, you can't use the latest kernel version until grsec is ported to it.

Not really a problem unless your distro updates to the latest version the night it's released, which most will not. Grsecurity's dev patch tends to be far, far ahead of whatever Ubuntu is using.

I ran it on an Ubuntu system with virtually all features enabled with little problem.

Re:HardenedLinux: The way to the Ark by viraptor on Monday May 01, 2017 @08:49PM (#14243136)
> Most will not break userland

That's exactly what I meant. It usually works the same. Apart from when it doesn't. For example arch's linux-grsec kernel requires pax changes for common KDE apps, and every separate python virtualenv. Restricted runtime CPU registers stop powertop. Something (can't remember details now) affected sysdig.

It's not critical. I used to run grsec kernel all the time on a laptop. But I can't imagine someone dropping, for example paxd support into a popular distro and expect people to deal with apps suddenly not starting.

Re:HardenedLinux: The way to the Ark by hardenedlinux on Monday May 01, 2017 @01:09PM (#14239352)
We've been using PaX/Grsecurity on Debian( as server) and Linux Mint( as Desktop) for a while. It's working perfect fine until now. You can also tweak the reproducible builds as well:

https://github.com/hardenedlinux/grsecurity-reproducible-bui...

As exmaple of Linux Mint: https://hardenedlinux.github.io/system-security/2016/01/10/h...

Re:HardenedLinux: The way to the Ark by justincormack on Monday May 01, 2017 @06:05AM (#14236518)
The major distros gave up using significant amounts of non upstream code a decade or so ago, as it was extremely difficult to support. The only people who ship the grsec kernels ship them pretty much unmodified.
Re:HardenedLinux: The way to the Ark by Foxboron on Monday May 01, 2017 @06:00AM (#14236507)
Arch Linux has provided the kernel with grsecurity patches inn the main repos for a long time.
Re:HardenedLinux: The way to the Ark by qznc on Monday May 01, 2017 @07:39AM (#14236839)
"The PaX and grsecurity patches are no longer going to be public, so official support in Arch Linux has ended"

https://lists.archlinux.org/pipermail/arch-general/2017-Apri...

Re:HardenedLinux: The way to the Ark by gribbly on Monday May 01, 2017 @10:27AM (#14237655)
The 'hardened' kernel he mentioned has recently (~40 hours) appeared in the Arch repos:

https://www.archlinux.org/packages/community/x86_64/linux-ha...

Not a replacement but at least an alternative.

Re:HardenedLinux: The way to the Ark by Foxboron on Monday May 01, 2017 @09:22AM (#14237254)
Yes. I wrote "has".
Re:HardenedLinux: The way to the Ark by joh6nn on Monday May 01, 2017 @11:09AM (#14238102)
"has" is present tense. I think you meant "had"?
Re:HardenedLinux: The way to the Ark by dfc on Monday May 01, 2017 @06:51AM (#14236670)
The question was about the main kernel package in a distribution. Lots of distributions had optional packages with grsec support.
Re:HardenedLinux: The way to the Ark by snaky on Monday May 01, 2017 @05:50PM (#14242031)
> The Gentoo Hardened project maintains security-enhancement features for Gentoo, including but not limited to grsecurity

https://wiki.gentoo.org/wiki/Hardened/Grsecurity2_Quickstart...