mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-23 11:36:30 +00:00
PolicyCapability: Use newly exported sepol_polcap_getname() function in libsepol 2.8.
This commit is contained in:
parent
1a73d75b59
commit
6a7df58b3d
@ -42,7 +42,7 @@ before_install:
|
|||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- SELINUX_USERSPACE_VERSION=libsepol-2.7
|
- SELINUX_USERSPACE_VERSION=libsepol-2.8
|
||||||
|
|
||||||
# Download current SELinux userspace tools and libraries
|
# Download current SELinux userspace tools and libraries
|
||||||
- git clone https://github.com/SELinuxProject/selinux.git selinux-src -b ${SELINUX_USERSPACE_VERSION}
|
- git clone https://github.com/SELinuxProject/selinux.git selinux-src -b ${SELINUX_USERSPACE_VERSION}
|
||||||
|
@ -18,7 +18,7 @@ To run SETools command line tools, the following packages are required:
|
|||||||
* NetworkX 2.0+
|
* NetworkX 2.0+
|
||||||
* setuptools
|
* setuptools
|
||||||
* libselinux
|
* libselinux
|
||||||
* libsepol 2.7+
|
* libsepol 2.8+
|
||||||
|
|
||||||
To run SETools graphical tools, the following packages are also required:
|
To run SETools graphical tools, the following packages are also required:
|
||||||
* PyQt5
|
* PyQt5
|
||||||
|
@ -18,9 +18,6 @@
|
|||||||
# <http://www.gnu.org/licenses/>.
|
# <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):
|
cdef class PolicyCapability(PolicySymbol):
|
||||||
|
|
||||||
@ -33,7 +30,7 @@ cdef class PolicyCapability(PolicySymbol):
|
|||||||
"""Factory function for creating PolicyCapability objects."""
|
"""Factory function for creating PolicyCapability objects."""
|
||||||
r = PolicyCapability()
|
r = PolicyCapability()
|
||||||
r.policy = policy
|
r.policy = policy
|
||||||
r.name = POLCAP_NAMES[bit]
|
r.name = intern(sepol.sepol_polcap_getname(bit))
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user