python-selinux - Python bindings to SELinux shared libraries

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Universe amd64
Package name python-selinux
Package version 2.4
Package release 3build2
Package architecture amd64
Package type deb
Installed size 1021 B
Download size 169.34 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.4-3build2_i386.deb 2.4 i386 Ubuntu Universe
python-selinux - - -


Name Value
libc6 >= 2.14
libselinux1 >= 2.3
python << 2.8
python >= 2.7~
python:any >= 2.7.5-5~


Name Value
python2.7-selinux -


Type URL
Binary Package python-selinux_2.4-3build2_amd64.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




2016-03-16 - Matthias Klose <>
libselinux (2.4-3build2) xenial; urgency=medium
* No-change rebuild for ruby2.3 support.
2016-01-19 - Matthias Klose <>
libselinux (2.4-3build1) xenial; urgency=medium
* No-change rebuild to drop python3.4 support.
2015-11-18 - Laurent Bigonville <>
libselinux (2.4-3) unstable; urgency=medium
* Team upload.
* Upload to unstable
* debian/ Add $(PYTHON3_VERSIONS) to the PHONY target
2015-07-10 - Laurent Bigonville <>
libselinux (2.4-2) experimental; urgency=medium
* Team upload.
* debian/control: Also bump the dependency against libsepol1-dev to 2.4
* Start building python 3 packages
2015-06-03 - Laurent Bigonville <>
libselinux (2.4-1) experimental; urgency=medium
* Team upload.
* New upstream release
- Bump libsepol1-dev build-dependency to >= 2.4 to match the release
- Drop d/p/Add-pcre-version-string.patch,
d/p/Log-an-error-on-unknown-classes.patch and
d/p/libselinux-man-Add-missing-manpage-links-to-security.patch: Applied
- debian/patches/fix-makefile-bugs.patch: Refreshed
* debian/watch: Update watch file URL
* debian/control: Bump Standards-Version to 3.9.6 (no further changes)
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

See Also

Package Description
python-semanage_2.3-1build3_amd64.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.1-1build1_amd64.deb Python interface to sendfile(2)
python-senlin_1.0.0-1_all.deb clustering service for OpenStack clouds - Python 2.7
python-sensor-msgs_1.12.3-5_all.deb Messages relating to Robot OS sensor, Python interface
python-sepolgen_1.2.2-3_all.deb Python module used in SELinux policy generation
python-sepolicy_2.3-1_amd64.deb Python binding for SELinux Policy Analyses
python-seqdiag_0.9.3-5_all.deb seqdiag generate sequence-diagram image file from spec-text file
python-sesame_0.24-4_all.deb Python wrapper for Sesame's REST HTTP API
python-setools_3.3.8+20151215-2_amd64.deb SETools Python bindings
python-setoptconf_0.2.0-1_all.deb retrieve Python program settings from a variety of sources
python-setproctitle_1.1.8-1build2_amd64.deb A setproctitle implementation for Python (Python 2)
python-setupdocs_1.0.5-3build1_all.deb setuptools plugin that automates building of docs from reST source
python-setuptools-git_1.1-1_all.deb plugin for setuptools that enables git integration
python-setuptools-scm_1.10.1-2ubuntu1_all.deb blessed package to manage your versions by scm tags for Python 2