Linux repositories inspector

libselinux-devel - Development files for the SELinux runtime library

libselinux provides an interface to get and set process and file security contexts and to obtain security policy decisions.

This package contains the development files, which are necessary to develop your own software using libselinux.
3.0
Fedora iconFedora rawhide
OpenSUSE iconOpenSUSE Leap 15.2
OpenSUSE iconOpenSUSE Tumbleweed
2.9
Fedora iconFedora 30
Fedora iconFedora 31
2.8
Fedora iconFedora 29
OpenSUSE iconOpenSUSE Leap 15.1
2.7
Fedora iconFedora 28
2.6
OpenSUSE iconOpenSUSE Leap 15.0
2.5
CentOS iconCentOS 7.7.1908
OpenSUSE iconOpenSUSE Leap 42.3
DistributionVersionSincePackageInstalledPackager
CentOS iconCentOS 7.7.1908 osrpm2.5-14.1.el72020-01-07187 kiB190 kiBCentOS BuildSystem
Fedora iconFedora 28 releases/Everything-osrpm2.7-13.fc282019-01-14197 kiB187 kiBFedora Project
Fedora iconFedora 29 releases/Everything-osrpm2.8-4.fc292019-01-14117 kiB187 kiBFedora Project
Fedora iconFedora 29 releases-test/Everything-osrpm2.8-3.fc292019-01-14117 kiB187 kiBFedora Project
Fedora iconFedora 30 releases/Everything-osrpm2.9-1.fc302019-06-17117 kiB187 kiBFedora Project
Fedora iconFedora 31 releases/Everything-osrpm2.9-5.fc312020-01-07115 kiB187 kiBFedora Project
Fedora iconFedora rawhide development/Everything-osrpm3.0-4.fc332020-03-08116 kiB190 kiBFedora Project
OpenSUSE iconOpenSUSE Leap 15.0 ossrpm2.6-lp150.2.142019-01-17120 kiB181 kiBhttps://bugs.opensuse.org
OpenSUSE iconOpenSUSE Leap 15.0 update/ossrpm2.6-lp150.3.3.12019-06-24112 kiB181 kiBhttp://bugs.opensuse.org
OpenSUSE iconOpenSUSE Leap 15.1 ossrpm2.8-lp151.1.262019-04-09112 kiB182 kiBhttps://bugs.opensuse.org
OpenSUSE iconOpenSUSE Leap 15.2 ossrpm3.0-lp152.1.82020-03-23115 kiB184 kiBhttps://bugs.opensuse.org
OpenSUSE iconOpenSUSE Leap 42.3 ossrpm2.5-4.172019-01-17108 kiB176 kiBhttp://bugs.opensuse.org
OpenSUSE iconOpenSUSE Tumbleweed ossrpm3.0-1.12020-03-14125 kiB184 kiBhttps://bugs.opensuse.org

Manual pages

avc_add_callback(3)

avc_add_callback - additional event notification for SELinux userspace object managers

avc_cache_stats(3)

avc_cache_stats, avc_av_stats, avc_sid_stats - obtain userspace SELinux AVC statistics

avc_compute_create(3)

avc_compute_create, avc_compute_member - obtain SELinux label for new object

avc_context_to_sid(3)

avc_context_to_sid, avc_sid_to_context, avc_get_initial_sid - obtain and manipulate SELinux security ID’s

avc_has_perm(3)

avc_has_perm, avc_has_perm_noaudit, avc_audit, avc_entry_ref_init - obtain and audit SELinux access decisions

avc_init(3)

avc_init - legacy userspace SELinux AVC setup

avc_netlink_loop(3)

avc_netlink_open, avc_netlink_close, avc_netlink_acquire_fd, avc_netlink_release_fd, avc_netlink_check_nb, avc_netlink_loop - SELinux netlink processing

avc_open(3)

avc_open, avc_destroy, avc_reset, avc_cleanup - userspace SELinux AVC setup and teardown

context_new(3)

context_new, context_str, context_free, context_type_get, context_type_set, context_range_get, context_range_set,context_role_get, context_role_set, context_user_get, context_user_set - Routines to manipulate SELinux security contexts

getcon(3)

getcon, getprevcon, getpidcon - get SELinux security context of a process freecon, freeconary - free memory associated with SELinux security contexts getpeercon - get security context of a peer socket setcon - set current security context of a process

getexeccon(3)

getexeccon, setexeccon - get or set the SELinux security context used for executing a new process rpm_execcon - run a helper for rpm in an appropriate security context

getfilecon(3)

getfilecon, fgetfilecon, lgetfilecon - get SELinux security context of a file

getfscreatecon(3)

getfscreatecon, setfscreatecon - get or set the SELinux security context used for creating a new file system object

getkeycreatecon(3)

getkeycreatecon, setkeycreatecon - get or set the SELinux security context used for creating a new kernel keyrings

getseuserbyname(3)

getseuserbyname - get SELinux username and level for a given Linux username

getsockcreatecon(3)

getsockcreatecon, setsockcreatecon - get or set the SELinux security context used for creating a new labeled sockets

init_selinuxmnt(3)

init_selinuxmnt - initialize the global variable selinux_mnt

is_context_customizable(3)

is_context_customizable - check whether SELinux context type is customizable by the administrator

is_selinux_enabled(3)

is_selinux_mls_enabled - check whether SELinux is enabled for (Multi Level Security) MLS

matchmediacon(3)

matchmediacon - get the default SELinux security context for the specified mediatype from the policy

matchpathcon(3)

matchpathcon, matchpathcon_index - get the default SELinux security context for the specified path from the file contexts configuration

matchpathcon_checkmatches(3)

matchpathcon_checkmatches, matchpathcon_filespec_add, matchpathcon_filespec_destroy, matchpathcon_filespec_eval - check and report whether any specification index has no matches with any inode. Maintenance and statistics on inode associations

security_check_context(3)

security_check_context - check the validity of a SELinux context

security_disable(3)

security_disable - disable the SELinux kernel code at runtime

security_getenforce(3)

security_getenforce, security_setenforce, security_deny_unknown, security_reject_unknown, security_get_checkreqprot - get or set the enforcing state of SELinux

security_load_booleans(3)

security_set_boolean, security_commit_booleans, security_get_boolean_names, security_get_boolean_active, security_get_boolean_pending - routines for manipulating SELinux boolean values

security_load_policy(3)

security_load_policy - load a new SELinux policy

security_policyvers(3)

security_policyvers - get the version of the SELinux policy

selabel_digest(3)

selabel_digest - Return digest of specfiles and list of files used

selabel_get_digests_all_partial_matches(3)

selabel_get_digests_all_partial_matches - retrieve the partial matches digest and the xattr digest that applies to the supplied path - Only supported on file backend.

selabel_lookup(3)

selabel_lookup - obtain SELinux security context from a string label

selabel_lookup_best_match(3)

selabel_lookup_best_match - obtain a best match SELinux security context - Only supported on file backend.

selabel_open(3)

selabel_open, selabel_close - userspace SELinux labeling interface

selabel_partial_match(3)

selabel_partial_match - determine whether a direct or partial match is possible on a file path - Only supported on file backend.

selabel_stats(3)

selabel_stats - obtain SELinux labeling statistics

selinux_boolean_sub(3)

selinux_boolean_sub - Search the translated name for a boolean_name record

selinux_check_securetty_context(3)

selinux_check_securetty_context - check whether a SELinux tty security context is defined as a securetty context

selinux_colors_path(3)

selinux_colors_path - Return a path to the active SELinux policy color configuration file

selinux_file_context_cmp(3)

selinux_file_context_cmp - Compare two SELinux security contexts excluding the ’user’ component

selinux_file_context_verify(3)

selinux_file_context_verify - Compare the SELinux security context on disk to the default security context required by the policy file contexts file

selinux_getenforcemode(3)

selinux_getenforcemode - get the enforcing state of SELinux

selinux_getpolicytype(3)

selinux_getpolicytype - get the type of SELinux policy running on the system

selinux_lsetfilecon_default(3)

selinux_lsetfilecon_default - set the file context to the system defaults

selinux_policy_root(3)

selinux_policy_root - return the path of the SELinux policy files for this machine selinux_set_policy_root - Set an alternate SELinux root path for the SELinux policy files for this machine.

selinux_raw_context_to_color(3)

selinux_raw_context_to_color - Return RGB color string for an SELinux security context

selinux_restorecon(3)

selinux_restorecon - restore file(s) default SELinux security contexts

selinux_restorecon_default_handle(3)

selinux_restorecon_default_handle - sets default parameters for selinux_restorecon(3)

selinux_restorecon_set_alt_rootpath(3)

selinux_restorecon_set_alt_rootpath - set an alternate rootpath.

selinux_restorecon_set_exclude_list(3)

selinux_restorecon_set_exclude_list - set list of directories to be excluded from relabeling.

selinux_restorecon_set_sehandle(3)

selinux_restorecon_set_sehandle - set a labeling handle for use by selinux_restorecon(3)

selinux_restorecon_xattr(3)

selinux_restorecon_xattr - manage default security.sehash extended attribute entries added by selinux_restorecon(3), setfiles(8) or restorecon(8).

selinux_set_callback(3)

selinux_set_callback - userspace SELinux callback facilities

selinux_set_mapping(3)

selinux_set_mapping - establish dynamic object class and permission mapping

selinux_status_open(3)

selinux_status_open, selinux_status_close, selinux_status_updated, selinux_status_getenforce, selinux_status_policyload and selinux_status_deny_unknown - reference the SELinux kernel status without invocation of system calls

setfilecon(3)

setfilecon, fsetfilecon, lsetfilecon - set SELinux security context of a file

set_matchpathcon_flags(3)

set_matchpathcon_flags, set_matchpathcon_invalidcon, set_matchpathcon_printf - set flags controlling the operation of matchpathcon or matchpathcon_index and configure the behaviour of validity checking and error displaying

Latest updates

OpenSUSE icon

OpenSUSE Leap 15.2 oss: Updated from 2.8-lp152.2.68 to 3.0-lp152.1.8

2020-03-23
  • Update to version 3.0
    • Ignore the stem when looking up all matches in file context
    • Save digest of all partial matches for directory
    • Use Python distutils to install SELinux python bindings
    • ensure that digest_len is not zero
    • fix string conversion of unknown perms
    • mark all exported function "extern"
    Dropped Use-Python-distutils-to-install-SELinux.patch, included upstream
OpenSUSE icon

OpenSUSE Leap 15.2 oss: Updated from 2.8-lp152.2.62 to 2.8-lp152.2.68

2020-03-19
  • Remove unneeded build requires for python3 (bsc#1120255)
OpenSUSE icon

OpenSUSE Tumbleweed oss: Updated from 2.9-7.2 to 3.0-1.1

2020-03-14
  • Update to version 3.0
    • Ignore the stem when looking up all matches in file context
    • Save digest of all partial matches for directory
    • Use Python distutils to install SELinux python bindings
    • ensure that digest_len is not zero
    • fix string conversion of unknown perms
    • mark all exported function "extern"
    Dropped Use-Python-distutils-to-install-SELinux.patch, included upstream
Fedora icon

Fedora rawhide development/Everything-os: Updated from 3.0-3.fc32 to 3.0-4.fc33

2020-03-08
  • Eliminate use of security_compute_user()
OpenSUSE icon

OpenSUSE Leap 15.2 oss: Updated from 2.8-lp152.2.58 to 2.8-lp152.2.62

2020-02-19
  • Remove unneeded build requires for python3 (bsc#1120255)
OpenSUSE icon

OpenSUSE Tumbleweed oss: Updated from 2.9-7.1 to 2.9-7.2

2020-02-09
  • Added Use-Python-distutils-to-install-SELinux.patch to use Python's distutils instead of building and installing python bindings manually
Fedora icon

Fedora rawhide development/Everything-os: Updated from 3.0-2.fc32 to 3.0-3.fc32

2020-02-08
OpenSUSE icon

OpenSUSE Leap 15.2 oss: Updated from 2.8-lp152.2.54 to 2.8-lp152.2.58

2020-02-04
  • Remove unneeded build requires for python3 (bsc#1120255)
Fedora icon

Fedora rawhide development/Everything-os: Updated from 3.0-1.fc32 to 3.0-2.fc32

2020-01-23
  • F-32: rebuild against ruby27
OpenSUSE icon

OpenSUSE Leap 15.2 oss: Updated from 2.8-lp152.2.50 to 2.8-lp152.2.54

2020-01-17
  • Remove unneeded build requires for python3 (bsc#1120255)
Fedora icon

Fedora 31 releases/Everything-os: Version 2.9-5.fc31 introduced

2020-01-07
  • Drop python2-libselinux (#1739646)
OpenSUSE icon

OpenSUSE Leap 15.2 oss: Version 2.8-lp152.2.50 introduced

2020-01-07
  • Remove unneeded build requires for python3 (bsc#1120255)
CentOS icon

CentOS 7.7.1908 os: Version 2.5-14.1.el7 introduced

2020-01-07
  • Add conflict with selinux policy from before store migration (#1469571)
OpenSUSE icon

OpenSUSE Tumbleweed oss: Updated from 2.9-6.1 to 2.9-7.1

2019-12-24
  • Added Use-Python-distutils-to-install-SELinux.patch to use Python's distutils instead of building and installing python bindings manually
Fedora icon

Fedora rawhide development/Everything-os: Updated from 3.0-0.r1.1.fc32 to 3.0-1.fc32

2019-12-07
  • SELinux userspace 3.0 release
OpenSUSE icon

OpenSUSE Tumbleweed oss: Updated from 2.9-5.2 to 2.9-6.1

2019-11-20
  • Added Use-Python-distutils-to-install-SELinux.patch to use Python's distutils instead of building and installing python bindings manually
Fedora icon

Fedora rawhide development/Everything-os: Updated from 2.9-7.fc32 to 3.0-0.r1.1.fc32

2019-11-16
  • SELinux userspace 3.0-rc1 release candidate
Fedora icon

Fedora rawhide development/Everything-os: Updated from 2.9-6.fc32 to 2.9-7.fc32

2019-10-05
  • Rebuilt for Python 3.8.0rc1 (#1748018)
Fedora icon

Fedora rawhide development/Everything-os: Updated from 2.9-5.fc31 to 2.9-6.fc32

2019-08-24
  • Rebuilt for Python 3.8
Fedora icon

Fedora rawhide development/Everything-os: Updated from 2.9-4.fc31 to 2.9-5.fc31

2019-08-20
  • Drop python2-libselinux (#1739646)

Related packages

libselinux - SELinux library and simple utilities
devel - Hydrogen header files
libselinux-devel-static - Static archives for the SELinux runtime
⇧ Top