python-selinux - Python bindings to SELinux shared libraries

Property Value
Distribution Debian 8 (Jessie)
Repository Debian Main i386
Package name python-selinux
Package version 2.3
Package release 2
Package architecture i386
Package type deb
Installed size 664 B
Download size 174.59 KB
Official Mirror
This package provides the Python bindings needed for developing Python
SELinux applications.
Security-enhanced Linux is a patch of the Linux kernel and a number
of utilities with enhanced security functionality designed to add mandatory
access controls to Linux. The Security-enhanced Linux kernel contains
new architectural components originally developed to improve the security
of the Flask operating system. These architectural components provide
general support for the enforcement of many kinds of mandatory access
control policies, including those based on the concepts of Type Enforcement,
Role-based Access Control, and Multi-level Security.


Package Version Architecture Repository
python-selinux_2.3-2_amd64.deb 2.3 amd64 Debian Main
python-selinux - - -


Name Value
libc6 >= 2.4
libselinux1 >= 2.3
python << 2.8
python >= 2.7


Name Value
python2.7-selinux -


Type URL
Binary Package python-selinux_2.3-2_i386.deb
Source Package libselinux

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install python-selinux deb package:
    # sudo apt-get install python-selinux




2014-08-31 - Laurent Bigonville <>
libselinux (2.3-2) unstable; urgency=medium
* Team upload.
* Add debian/patches/Add-pcre-version-string.patch: Add pcre version string
to the compiled file_contexts format. This is necesarry to detect the
cases where the internal libpcre representation has changed, if it's the
case libselinux will rely on the non-compiled file (Closes: #756826)
* Add debian/patches/Log-an-error-on-unknown-classes.patch: Log an error on
unknown classes and permissions.
* d/p/libselinux-man-Add-missing-manpage-links-to-security.patch: Add the
missing manpage links for selinux_mkload_policy(3) and
selinux_init_load_policy(3) (Closes: #753803)
* Drop debian/libselinux1.postinst: Reloading systemd during an upgrade in
an uncontroled way might endup with unwanted side effects (Closes: #753726)
2014-05-14 - Laurent Bigonville <>
libselinux (2.3-1) unstable; urgency=medium
* Team upload.
* New upstream release
- debian/control: Bump {build-}dependencies to match new release
- debian/libselinux1.symbols: Add new setexecfilecon() function
* debian/ Rework the makefile, it should handle changes in the
supported ruby versions by binNMU now (Closes: #747683)
* Add Built-Using field for python-selinux as is statically
linking against libsepol
2014-05-02 - Laurent Bigonville <>
libselinux (2.2.2-2) unstable; urgency=medium
* Team upload.
[ Laurent Bigonville ]
* debian/rules: Do not require ruby or python dh helpers when bootstrapping
thanks to Daniel Schepler <> (Closes: #738148)
[ Hideki Yamane ]
* debian/{,ruby-selinux.install}
- drop related to ruby1.9.1 and add ruby2.1.0 instead (Closes: #746024)
2014-01-11 - Laurent Bigonville <>
libselinux (2.2.2-1) unstable; urgency=medium
* Team upload.
* New upstream release
* debian/control: Mark -dev package as Multi-arch: same. (Closes: #732098)
* debian/control: Bump Standards-Version to 3.9.5 (no further changes)
* debian/rules: Fix cross build, no need for a different prefix.
2013-11-10 - Laurent Bigonville <>
libselinux (2.2.1-1) unstable; urgency=low
* Team upload.
* New upstream release
* Drop debian/patches/link_pthread.patch: Upstream disagreed with this
solution, this will unfortunately require to rebuild some of the
2013-11-02 - Laurent Bigonville <>
libselinux (2.2-2) unstable; urgency=low
* Team upload.
* debian/patches/link_pthread.patch: Explicitly link against -lpthread as
libselinux is using it internally, without this is asserting in a
weird way for some executables (Closes: #728529)
2013-11-01 - Laurent Bigonville <>
libselinux (2.2-1) unstable; urgency=low
* Team upload.
* New upstream release
- Fix avc_has_perm() returns -1 even when SELinux is permissive.
(Closes: #727766)
- debian/control: Bump {build-}dependencies to match new release
- debian/patches/fix-makefile-bugs.patch: Refreshed
- Drop debian/patches/fix-manpages.patch: Not needed anymore
- debian/patches/fix-cross-compile.patch: Refreshed
- Drop debian/patches/allow-libbase-override.patch: Merged upstream
- Drop debian/patches/fix_pcre_link.patch: Fixed upstream
- Drop debian/patches/add_missing_private_pc.patch: Fixed upstream
- Adjust debian/libselinux1.symbols: Add new symbols
* debian/rules: getenforce and selinuxenabled executable are installed in
/usr/sbin, keep their manpages in section 8
2013-10-02 - Laurent Bigonville <>
libselinux (2.1.13-3) unstable; urgency=low
* Team upload.
* debian/ Stop building binding for ruby 1.8 and start building it
for ruby 2.0 (Closes: #720247)
* debian/control: Bump Standards-Version to 3.9.4 (no further changes)
* debian/control: Use canonical URL for VCS-Git field
* debian/control, debian/rules: Drop libselinux-ruby1.8 transitional package

See Also

Package Description
python-semanage_2.3-1+b1_i386.deb Python bindings for SELinux policy management
python-semver_2.0.1-1_all.deb helps to compare semantic versioning - Python 2.x
python-sendfile_2.0.0-6_i386.deb Python interface to sendfile(2)
python-sepolgen_1.2.1-1_all.deb Python module used in SELinux policy generation
python-sepolicy_2.3-1_i386.deb Python binding for SELinux Policy Analyses
python-seqdiag_0.9.3-4_all.deb seqdiag generate sequence-diagram image file from spec-text file
python-serial_2.6-1.1_all.deb pyserial - module encapsulating access for the serial port
python-service-identity_1.0.0-3_all.deb Service identity verification for pyOpenSSL (Python 2 module)
python-sesame_0.24-4_all.deb Python wrapper for Sesame's REST HTTP API
python-setools_3.3.8-3.1_i386.deb SETools Python bindings
python-setproctitle_1.1.8-1_i386.deb A setproctitle implementation for Python (Python 2)
python-setupdocs_1.0.5-3_all.deb setuptools plugin that automates building of docs from reST source
python-setuptools-doc_5.5.1-1_all.deb Python Distutils Enhancements (documentation)
python-setuptools-git_1.1-1_all.deb plugin for setuptools that enables git integration
python-setuptools-whl_5.5.1-1_all.deb Python Distutils Enhancements (wheel package)