1 |
On Friday, July 15, 2011 02:44:45 Michał Górny wrote: |
2 |
> On Thu, 14 Jul 2011 19:19:11 -0400 Mike Frysinger wrote: |
3 |
> > > 3) Since a hardened kernel can be configure with various flavors of |
4 |
> > > "pax" or "grsec" or "selinux", there should be useflags to reflect |
5 |
> > > userland needs to conform. There already is a "selinux" flag which |
6 |
> > > is set by selinux profiles. Currently we don't see a need for a |
7 |
> > > "grsec" flag, however, there is a need for a "pax" global use flag |
8 |
> > > which we propose calling "pax_kernel". (If nothing else to |
9 |
> > > distinguish it from app-arch/pax.) |
10 |
> > > |
11 |
> > > Userland binaries which will run under a pax enabled kernel may need |
12 |
> > > special treatment to run, or else they'll be killed by the kernel. |
13 |
> > > The best example here is an RWX mmapping. Although the ideal case |
14 |
> > > is to "fix the code" this is not always feasible and so binaries |
15 |
> > > will still need markings with paxctl -m. |
16 |
> > |
17 |
> > if `paxctl` is installed, then i say always run `paxctl` on the |
18 |
> > problematic binaries regardless of USE flags. have the |
19 |
> > hardened-sources package depend on paxctl, and then that takes care |
20 |
> > of the dependency. |
21 |
> |
22 |
> Do we support migrating existing systems to hardened? If so, then this |
23 |
> solution will leave users with a need to manually remerge pax-setting |
24 |
> packages. Though, I guess, it's pretty easy to grab that package list |
25 |
> on pax-utils.eclass inherit. |
26 |
|
27 |
that's not what i was envisioning. the paxctl dep should be in the hardened |
28 |
profile as part of the system, and the pax-utils.eclass would be unmodified. |
29 |
the eclass has logic for silently returning if paxctl is not available. |
30 |
-mike |