PolicyCapability: Use newly exported sepol_polcap_getname() function in libsepol 2.8.

This commit is contained in:
Chris PeBenito 2018-05-26 15:04:57 -04:00
parent 1a73d75b59
commit 6a7df58b3d
3 changed files with 3 additions and 6 deletions

View File

@ -42,7 +42,7 @@ before_install:
- sudo apt-get update -qq
install:
- SELINUX_USERSPACE_VERSION=libsepol-2.7
- SELINUX_USERSPACE_VERSION=libsepol-2.8
# Download current SELinux userspace tools and libraries
- git clone https://github.com/SELinuxProject/selinux.git selinux-src -b ${SELINUX_USERSPACE_VERSION}

View File

@ -18,7 +18,7 @@ To run SETools command line tools, the following packages are required:
* NetworkX 2.0+
* setuptools
* libselinux
* libsepol 2.7+
* libsepol 2.8+
To run SETools graphical tools, the following packages are also required:
* PyQt5

View File

@ -18,9 +18,6 @@
# <http://www.gnu.org/licenses/>.
#
POLCAP_NAMES = ("network_peer_controls", "open_perms", "extended_socket_class",
"always_check_network", "cgroup_seclabel", "nnp_nosuid_transition")
cdef class PolicyCapability(PolicySymbol):
@ -33,7 +30,7 @@ cdef class PolicyCapability(PolicySymbol):
"""Factory function for creating PolicyCapability objects."""
r = PolicyCapability()
r.policy = policy
r.name = POLCAP_NAMES[bit]
r.name = intern(sepol.sepol_polcap_getname(bit))
return r
def __str__(self):