Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221907 - sys-kernel/vserver-sources: please include grsecurity patches
Summary: sys-kernel/vserver-sources: please include grsecurity patches
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://linux-vserver.org/
Whiteboard:
Keywords:
Depends on: 245221
Blocks:
  Show dependency tree
 
Reported: 2008-05-13 08:47 UTC by Luca Lesinigo
Modified: 2016-02-20 17:43 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Lesinigo 2008-05-13 08:47:02 UTC
grsecurity can be used together with the linux-vserver patches and it's a welcome addition in a production environment.

We don't currently have an ebuild to install vserver+grsec sources, it would be good to have one. I don't know if it would be better to have a new ebuild or add a USE flag to sys-kernel/vserver-sources.

The latest unified patch with vserver+grsec is always available at the linux-vserver homepage.

I'm currently running 2.6.22.19-grsec2.1.11-vs2.2.0.7 on hppa.
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2008-05-13 10:03:33 UTC
hardened, please un-cc youself if you aren't interested.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2008-05-22 18:32:07 UTC
the vserver herd (that means me) is not interested in maintaining a grsec+vserver ebuild, since i have no use for the hardened crap
Comment 3 solar (RETIRED) gentoo-dev 2008-05-23 00:02:43 UTC
in a real nice way... FU get me off this damn CC: list. Insulting another mans hard work for no reason is pretty god damn fucking rude.
Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2008-05-23 04:43:46 UTC
hu? IMO hardened is useless, that doesn't stop you from maintaining a grsec+vserver ebuild
Comment 5 Alex Howells (RETIRED) gentoo-dev 2008-05-23 20:25:34 UTC
(In reply to comment #4)
> hu? IMO hardened is useless, that doesn't stop you from maintaining a
> grsec+vserver ebuild

I respectfully disagree.  When everyone without a Hardened kernel was running around going "zOMG!" over the vmsplice() issue, I just laughed as grSecurity+PaX killed any such attempts to escalate privileges on my system.

@ Luca:  If you come up with an ebuild it'll have a better chance of living, through something like Sunrise you can upload/maintain it yourself?

Seeing as Benedikt is taking a "Not in my sandbox" attitude I think it's fairly safe to close this one as WONTFIX.
Comment 6 Luca Lesinigo 2008-05-25 09:50:04 UTC
(In reply to comment #5)
> @ Luca:  If you come up with an ebuild it'll have a better chance of living,
> through something like Sunrise you can upload/maintain it yourself?
> 
> Seeing as Benedikt is taking a "Not in my sandbox" attitude I think it's fairly
> safe to close this one as WONTFIX.
Well yeah I will try to make an ebuild myself since there seem to be some, uh, problems between current herd and the proposed piece of software.

Speaking of the 'crap', I'm not such an expert by afaik vserver is based on chroots and there already are a lot of known methods to break out of them - I don't really know if this is applicable to vserver chroots, though.

AFAIK it shouldn't be that difficult (the patch is already made & maintained by the vserver-linux.org people). You other people think it would be best a new ebuild or a 'hardened' flag to the current one? I would choose the former since the version name would change, but just asking...
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2008-05-25 10:38:33 UTC
(In reply to comment #6)

> AFAIK it shouldn't be that difficult (the patch is already made & maintained by
> the vserver-linux.org people). You other people think it would be best a new
> ebuild or a 'hardened' flag to the current one? I would choose the former since
> the version name would change, but just asking...

Better create new ebuild. After you do it, try to commit it to sunrise, bug in any case reopen this bug after that with a link to that ebuild. This bug should not be closed but assigned to maintainer-wanted IMO.

Comment 8 Benedikt Böhm (RETIRED) gentoo-dev 2008-05-25 15:53:40 UTC
well, i'm not much of an grsec expert, but it has failed on me and other hardened stuff (ssp & friends) too, so i have given up on hardened stuff for quite a while ... it may be better these days, and i'm aware that a grsec rediff is actively maintained, but i'm simply not interested in maintaining any hardened related ebuild
Comment 9 Luca Lesinigo 2008-05-26 17:18:37 UTC
(In reply to comment #8)
> well, i'm not much of an grsec expert, but it has failed on me and other
> hardened stuff (ssp & friends) too, so i have given up on hardened stuff for
> quite a while ... it may be better these days, and i'm aware that a grsec
> rediff is actively maintained, but i'm simply not interested in maintaining any
> hardened related ebuild
The key point to note here is that we're not talking about an ebuild for a grsec *kernel*, but for the *kernel source*. Getting a working kernel from that source is not a portage problem, we just need to get the source correctly installed in /usr/src/linux-$VERSION.
Comment 10 Luca Lesinigo 2008-09-15 14:01:12 UTC
just a fresh report.

I'm still running 2.6.22.19-grsec2.1.11-vs2.2.0.7 with uninterrupted uptime since May 2008, with grsec enabled and vservers running (various other patches needed in userland components, start from #221951 and follow links)

I do not have an ebuild for it since I still hadn't time to look into learning how to correctly manage version numbers (can't copy from another ebuild since we have a more complex versioning here). Still any help from someone able to write the ebuild would be appreciated, I would take care of submitting it and testing as far as I can.
Comment 11 Deniss Gaplevsky 2009-07-09 12:02:16 UTC
dont mess with "how to grsec works" just add "hardened" to IUSE and apply vserver patch depending on it
Comment 12 Walter 2010-02-18 09:02:58 UTC
I'm another gentoo user with manually installed vServer+grsec.

Is there any reason we can't automatically include arch-masked releases from harry's site (vserver+grsec rediff maintainer)?

I'm happy to write a script to generate the ebuilds if they will actually be added to portage, in the past most ebuilds seem to have sat on the tracker forever and I am now discouraged from bothering.
Comment 13 Anthony Basile gentoo-dev 2011-08-17 15:40:01 UTC
(In reply to comment #12)
> I'm another gentoo user with manually installed vServer+grsec.
> 
> Is there any reason we can't automatically include arch-masked releases from
> harry's site (vserver+grsec rediff maintainer)?
> 
> I'm happy to write a script to generate the ebuilds if they will actually be
> added to portage, in the past most ebuilds seem to have sat on the tracker
> forever and I am now discouraged from bothering.

Okay, I must be crazy but ... I'll consider maintaining this since I do hardened-sources.  I will need help from the community with the vserver side.

Send me any material that already exists.  I will test/stage it on my overlay and then put it on the tree.
Comment 14 Luca Lesinigo 2011-12-02 22:26:20 UTC
The material basically consists of the patch sets released by the linux-vserver.org people - they already take care of integrating both linux-vserver and grsecurity. New releases get published in the table on the homepage ( http://linux-vserver.org/ ) and consists of a single diff file against a vanilla kernel tree.
Comment 15 Pacho Ramos gentoo-dev 2016-02-20 17:43:47 UTC
removed