Gentoo Archives: gentoo-hardened

From: Jason Zaman <jason@×××××××××.com>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Portage-related AVCs
Date: Wed, 23 Nov 2016 17:30:39
Message-Id: 20161123173032.GD4893@meriadoc.perfinion.com
In Reply to: Re: [gentoo-hardened] Portage-related AVCs by Robert Sharp
1 On Wed, Nov 23, 2016 at 05:20:59PM +0000, Robert Sharp wrote:
2 > On 23/11/16 16:59, Robert Sharp wrote:
3 > >
4 > > On 23/11/16 15:58, Jason Zaman wrote:
5 > >> Either is fine, but im probably just gonna stabilize the 2.6 userspace
6 > >> in a couple weeks so that one is likely easier. and setools4 is waaay
7 > >> better than 3. The important point is that you dont want to have both
8 > >> policy.29 and policy.30 around. Then you get weirdness like if you
9 > >> downgrade a kernel or something random it'll load in the old policy
10 > >> which probably doesnt work properly, so whichever you pick, make sure
11 > >> you nuke the other one. and semodule -B will rebuild the whole policy
12 > >> again and load it.
13 > > OK - I will go with policy.30 and add the keywords etc. I did a couple
14 > > of local policy changes that may not be needed so will they disappear
15 > > in all of this or do I need to remove them somehow first?
16 > >
17 > > Thanks for all your help,
18 > > Robert
19 > >
20 > Sorry - noticed a couple of things while preping the emerge:
21 >
22 > 1) selinux-base-policy is blocking policycoreutils so presumably I need
23 > to add that to my accept_keywords?
24 > 2) this package has the "unconfined" use flag set but I don't use
25 > unconfined. Does that matter?
26
27 Oh, yeah the 2.6 userland needs at minimum 2.20151208-r6. Its been long
28 enough, i'll stabilize the new policies right away so just wait a bit
29 any sync again.
30
31 unconfined useflag just builds it, if you are using strict you can turn
32 off unconfined and set this in make.conf:
33 POLICY_TYPES="strict"
34 then it wont even build the targetted modules at all.

Replies

Subject Author
Re: [gentoo-hardened] Portage-related AVCs Robert Sharp <selinux@×××××××××××××××.org>