Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213254 - Request to import "proper netlink protection" grsecurity patch from PLD Linux
Summary: Request to import "proper netlink protection" grsecurity patch from PLD Linux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL: http://cvs.pld-linux.org/cgi-bin/cvsw...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2008-03-13 12:33 UTC by cilly
Modified: 2008-03-22 19:02 UTC (History)
2 users (show)

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


Attachments
Re-diffed for 2.6.23 (4490_grsec-netlink-capabilities.patch,3.07 KB, patch)
2008-03-18 11:58 UTC, kfm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cilly 2008-03-13 12:33:05 UTC
netlink checks are made in wrong place in grsec
Comment 1 kfm 2008-03-16 23:59:49 UTC
Thanks. I contacted Zbyniu, the author of the patch, who has explained its purpose as thus:

"1. Grsec checks only CAP_NET_ADMIN for operations via netlink, what is not
sufficient for current kernels.  Also audit and some scsi operations can
be controlled via netlink. Now all caps are calculated.

2. Deny accesses to CAP_NET_ADMIN are reported for all operations even if
capability is not required (ie "ip addr show").  Worse - learning mode
should add this capability to policies of processes that never require it.
Example apache and all postfix programs. Error must be logged in same place
where EPERM is returned by kernel."

During this exchange, spender was copied in so I'm hoping that he will review the patch prior to a decision being made as to whether to include this in the next hardened patchset.
Comment 2 Gordon Malm (RETIRED) gentoo-dev 2008-03-18 05:31:55 UTC
Looks like upstream took care of this in grsecurity-2.1.11-2.6.24.3-200803172136.  Will also be present in initial hardened-sources-2.6.24 release.
Comment 3 kfm 2008-03-18 11:08:54 UTC
Thanks Gordon. Let's fold this into 2.6.23-r9 then.
Comment 4 kfm 2008-03-18 11:58:34 UTC
Created attachment 146472 [details, diff]
Re-diffed for 2.6.23

The same patch as referenced by the URL, only re-diffed against 2.6.23 and with some explanatory blurb.
Comment 5 kfm 2008-03-22 19:02:43 UTC
Gordon contributed a (superior) backported patch which is now part of 2.6.23-r9. Closing.