1 |
Dustin C. Hatch <admiralnemo <at> gmail.com> writes: |
2 |
|
3 |
|
4 |
> > Last time I researched a gentoo hardened environment, it |
5 |
> > called for the default of Python to still be series 2 of the |
6 |
> > software. I was wondering if anyone had any experience with |
7 |
> > a "Hardened Gentoo workstation" that was using python 3 |
8 |
> > exclusively? |
9 |
|
10 |
> The SELinux libraries for Python only exist for Python 2. Without them, |
11 |
> Portage will be unable to e.g. load policy and set file context. You can |
12 |
> have Python 3 installed, and it can be the default interpreter if |
13 |
> sys-apps/portage was built with USE=python2, but you cannot have *only* |
14 |
> Python 3. |
15 |
|
16 |
|
17 |
OK, this interesting. On one workstation, I have: |
18 |
|
19 |
|
20 |
sys-apps/portage <snip> |
21 |
Installed versions: 2.2.8-r1(16:34:43 03/10/14)(ipc -build -doc -epydoc |
22 |
-pypy2_0 -python2 -python3 -selinux -xattr LINGUAS="-ru" |
23 |
PYTHON_TARGETS="python2_7 python3_3 -pypy2_0 -python2_6 -python3_2 -python3_4") |
24 |
|
25 |
|
26 |
So you saying go into package.use and set python2 flag for portage |
27 |
resulting in something like this: |
28 |
|
29 |
[ebuild R ] sys-apps/portage-2.2.8-r1 USE="(ipc) python2* -build -doc |
30 |
-epydoc (-pypy2_0) -python3 (-selinux) -xattr" LINGUAS="-ru" |
31 |
PYTHON_TARGETS="python2_7 python3_3 (-pypy2_0) -python2_6 -python3_2 |
32 |
(-python3_4)" 0 kB |
33 |
|
34 |
|
35 |
|
36 |
(note) I only use this as an example, I'm not upgrading this system |
37 |
to Hardened, just using it for clarification.) |
38 |
|
39 |
??? |
40 |
|
41 |
|
42 |
James |