[DSE-Dev] Bug#888722: Bug#888722: policycoreutils-python-utils: semanage port -a fails when python3-numpy is installed

Laurent Bigonville bigon at debian.org
Mon Jan 29 13:10:15 UTC 2018


tag 888722 + unreproducible
thanks

Le 29/01/18 à 08:19, Russell Coker a écrit :
> Package: policycoreutils-python-utils
> Version: 2.6-3
> Severity: normal
>
> # semanage port -a -t ssh_port_t -p tcp 1234
> ValueError: Port tcp/1234 already defined
> # apt-get install python3-numpy
> [...]
> Setting up python3-numpy (1:1.12.1-3) ...
> # semanage port -a -t ssh_port_t -p tcp 1234
> Traceback (most recent call last):
>    File "/usr/sbin/semanage", line 28, in <module>
>      import seobject
>    File "/usr/lib/python3/dist-packages/seobject.py", line 34, in <module>
>      import sepolicy
>    File "/usr/lib/python3/dist-packages/sepolicy/__init__.py", line 8, in <module>
>      import setools
>    File "/usr/lib/python3/dist-packages/setools/__init__.py", line 74, in <module>
>      from .infoflow import InfoFlowAnalysis
>    File "/usr/lib/python3/dist-packages/setools/infoflow.py", line 22, in <module>
>      import networkx as nx
>    File "/usr/lib/python3/dist-packages/networkx/__init__.py", line 93, in <module>
>      import networkx.linalg
>    File "/usr/lib/python3/dist-packages/networkx/linalg/__init__.py", line 9, in <module>
>      from networkx.linalg.algebraicconnectivity import *
>    File "/usr/lib/python3/dist-packages/networkx/linalg/algebraicconnectivity.py", line 18, in <module>
>      from numpy import (array, asmatrix, asarray, dot, matrix, ndarray, ones,
>    File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 142, in <module>
>      from . import add_newdocs
>    File "/usr/lib/python3/dist-packages/numpy/add_newdocs.py", line 13, in <module>
>      from numpy.lib import add_newdoc
>    File "/usr/lib/python3/dist-packages/numpy/lib/__init__.py", line 8, in <module>
>      from .type_check import *
>    File "/usr/lib/python3/dist-packages/numpy/lib/type_check.py", line 11, in <module>
>      import numpy.core.numeric as _nx
>    File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 33, in <module>
>      from . import _internal  # for freeze programs
>    File "/usr/lib/python3/dist-packages/numpy/core/_internal.py", line 14, in <module>
>      import ctypes
>    File "/usr/lib/python3.5/ctypes/__init__.py", line 537, in <module>
>      _reset_cache()
>    File "/usr/lib/python3.5/ctypes/__init__.py", line 276, in _reset_cache
>      CFUNCTYPE(c_int)(lambda: None)
> MemoryError

The memory error is suspicious here

I cannot reproduce this with 2.7-1 from unstable; and actually semanage 
is not using (even conditionally) numpy. it's python networkx which is 
using it, I'm wondering if it shouldn't be reassigned.

Could you try with unstable versions?

$ dpkg -l python3-numpy python3-networkx policycoreutils-python-utils
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom                                            Version                      Architecture                 Description
+++-==============================================-============================-============================-==================================================================================================
ii  policycoreutils-python-utils                   2.7-2                        all                          SELinux core policy utilities (Python utilities)
ii  python3-networkx                               1.11-2                       all                          tool to create, manipulate and study complex networks (Python3)
ii  python3-numpy                                  1:1.13.3-2                   amd64                        Fast array facility to the Python 3 language



More information about the SELinux-devel mailing list