Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 214593
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: The Gentoo Linux Hardened Team <hardened@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Kerin Millar <kerframil@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 214593 depends on: Show dependency tree
Bug 214593 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-24 20:38 0000
We need this in the tree and stabilised ASAP for two reasons:

1) The current version of gradm marked stable (2.1.10.200702231759) does not
work at all with any instance of hardened-sources presently in the tree -
certainly as far as 2.6 is concerned.

2) The latest version that we do have in the tree (2.1.11.200803102037) is
subject to some serious bugs which are described here:
http://forums.grsecurity.net/viewtopic.php?f=1&t=1928. However, the latest
snapshot resolves these bugs (thanks to gengor for confirming).

It's a trivial bump - just a matter of renaming and generating a new manifest.
I've confirmed that it works with the latest instance of hardened-sources and
we'll also be needing it to support a 2.6.24 release.

------- Comment #1 From solar 2008-03-24 21:34:10 0000 -------
200803171746 is in the tree now. Please test.. 

------- Comment #2 From Kerin Millar 2008-03-26 01:55:47 0000 -------
I'm just wondering if we need this conditional dep:

|| ( sys-apps/paxctl sys-apps/chpax )

Does gradm actually have a requirement for either of these packages? PaX flags
can be controlled via RBAC policy in the event that PAX_HAVE_ACL_FLAGS is
defined in the kernel .config (which it is in our bespoke level) but this is
orthogonal to the presence of either package, iirc.

Even if we do need paxctl for some reason, should we perhaps consider dropping
the conditional so that chpax is out of the picture?

------- Comment #3 From Kerin Millar 2008-04-04 22:03:12 0000 -------
Well, it doesn't seem to be have killed any kittens and does actually work with
the kernels we have now. Any reason not to get this stabilised soon?

------- Comment #4 From cilly 2008-04-05 08:02:22 0000 -------
working perfect for almost 2 weeks on kernel 2.6.23-hardened-r9, arch X86

------- Comment #5 From Gordon Malm 2008-04-05 08:52:05 0000 -------
solar has marked gradm-2.1.11-200803171746 stable on x86 and amd64.  This bug
can be closed.

------- Comment #6 From Gordon Malm 2008-04-07 20:30:10 0000 -------
My mistake, please disregard comment #5.  Previous builds of gradm are marked
stable on ARCH other than just x86/amd64 - though none of them have a stabled
hardened-sources release for months+, go figure.

The list of previous ARCHs with atleast one previous version of gradm stabled:
alpha arm ia64 ppc ppc64 s390 sh

------- Comment #7 From Luca Lesinigo 2008-05-14 15:47:39 0000 -------
We're now at gradm-2.1.11.200804142058 - meanwhile there were some fixes and
updates. I don't exactly know if the 20080310 version is compatible with most
recent kernels/grsec patches.

I suggest to stabilize that. I'm running it on HPPA without apparent problems,
it should be marked ~hppa soon for further testing.

The ChangeLog (http://www.grsecurity.net/cvs-gradm2-changelog) speaks about
FIXes too, so maybe the old version should be considered buggy? 20080310 ->
20080414 changes follow:
        * gradm_cap.c, gradm_defs.h: add support for CAP_SETFCAP
        * gradm.l, gradm_fulllearn_pass1.l, gradm_fulllearn_pass2.l,
          gradm_fulllearn_pass3.l, gradm_learn_pass1.l,
          gradm_learn_pass2.l: extend username limits
        * learn_config: always reduce portage
        * gradm_analyze.c: fix error checking when not done per-role
        * gradm_analyze.c: always check for default subjects/objects
        * Makefile, gradm_parse.c: support policies on files > 2gb

------- Comment #8 From Gordon Malm 2008-05-14 21:11:42 0000 -------
(In reply to comment #7)
> We're now at gradm-2.1.11.200804142058 - meanwhile there were some fixes and
> updates. I don't exactly know if the 20080310 version is compatible with most
> recent kernels/grsec patches.
> 
> I suggest to stabilize that. I'm running it on HPPA without apparent problems,
> it should be marked ~hppa soon for further testing.
> 
> The ChangeLog (http://www.grsecurity.net/cvs-gradm2-changelog) speaks about
> FIXes too, so maybe the old version should be considered buggy? 20080310 ->
> 20080414 changes follow:
>         * gradm_cap.c, gradm_defs.h: add support for CAP_SETFCAP
>         * gradm.l, gradm_fulllearn_pass1.l, gradm_fulllearn_pass2.l,
>           gradm_fulllearn_pass3.l, gradm_learn_pass1.l,
>           gradm_learn_pass2.l: extend username limits
>         * learn_config: always reduce portage
>         * gradm_analyze.c: fix error checking when not done per-role
>         * gradm_analyze.c: always check for default subjects/objects
>         * Makefile, gradm_parse.c: support policies on files > 2gb
> 

The current stable version is based on 20080317 snapshot, not 20080310.  It's
not "buggy" that I can tell.  If you find a specific bug, please file/report
it.  That said I will be calling for 2.1.11.200804142058 to go stable
prior/around the same time as 2.6.24-rX as their features do coincide (longer
username support, etc.).  I doubt there will be a problem using
gradm-2.1.11.200804142058 with 2.6.23 kernels but have not verified that.  If
people want to test and there is no compat issue we could possibly start the
stabilization process for gradm-2.1.11.200804142058 a bit earlier.

------- Comment #9 From Gordon Malm 2008-05-18 17:56:56 0000 -------
Removing pending status, CCing remaining ARCHs.  Please test/stable
gradm-2.1.11-200803171746.  Thanks.

------- Comment #10 From nixnut 2008-05-24 15:48:32 0000 -------
ppc stable

------- Comment #11 From Gordon Malm 2008-11-09 18:47:32 0000 -------
Old now anyway.  Will file a new bug for different version+remaining arches.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug