1 |
Thank you. I confirmed that portage had been running under python 2.7. |
2 |
|
3 |
I found the problem, though... I'd set POLICY_TYPES="targeted" in |
4 |
make.conf, and therefore portage installed policies into |
5 |
/etc/selinux/targeted only. However, running /usr/sbin/selinuxconfig and |
6 |
catting /etc/selinux/config both made clear that 'strict' was a requirement. |
7 |
|
8 |
I've worked through it by setting POLICY_TYPES="strict targeted", then |
9 |
rebuilding selinux-base and selinux-base-policy. I feel like this is |
10 |
another documentation bug - the user should be told either that 'strict' is |
11 |
initially required in make.conf, or that /etc/selinux/config must be edited |
12 |
before the selinux-base-policy install. |
13 |
|
14 |
Anyway, thanks again. I'm sure I'll be back... |
15 |
|
16 |
Erik |
17 |
|
18 |
|
19 |
On Sun, Feb 23, 2014 at 8:00 PM, Dustin C. Hatch <admiralnemo@×××××.com>wrote: |
20 |
|
21 |
> On 02/23/2014 06:18 PM, Erik Mackdanz wrote: |
22 |
> > I'm attempting to convert my laptop to SELinux using the conversion |
23 |
> > guide, and I've run into a few snags with documentation. I've consulted |
24 |
> > the troubleshooting page, archives and forums, and now am reaching out |
25 |
> > directly. |
26 |
> > |
27 |
> > 1) When I get to the world update ('emerge -uDN world'), every package |
28 |
> > fails at install with 'Failed to set SELinux security labels.' Don't I |
29 |
> > also need 'FEATURES="-selinux"' for that step (like the preceding step)? |
30 |
> > |
31 |
> I am fairly sure FEATURES=selinux is pretty important at this step; this |
32 |
> is where you are re-installing all packages with SELinux support, and |
33 |
> the security labels are supposed to be set. |
34 |
> |
35 |
> I had the same problem, though, on a recent conversion. In my case, the |
36 |
> problem was emerge was using python3, but the selinux module only exists |
37 |
> for python2. Try setting python2.7 as your default interpreter, or |
38 |
> re-emerge portage with USE=python2. The latter is what I did and now |
39 |
> everything works fine. |
40 |
> |
41 |
> -- |
42 |
> ♫Dustin |
43 |
> http://dustin.hatch.name/ |
44 |
> |
45 |
> |