SELinux library and simple utilities
Go to file
Petr Lautrbach 7039bfb757 libselinux-2.5-15
libselinux: Rewrite restorecon() python method

When the restorecon method was added to the libselinux swig python
bindings, there was no libselinux restorecon implementation and it
he had to call matchpathcon() which is deprecated in favor of
selabel_lookup().

The new restorecon method uses selinux_restorecon method from libselinux
and which is exported by the previous commit.

https://github.com/SELinuxProject/selinux/issues/29
https://github.com/fedora-selinux/selinux/pull/35

Fixes:
>>> selinux.restorecon('/var/lib', recursive=True)
Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/selinux/__init__.py", line 114, in restorecon
    status, context = matchpathcon(path, mode)
FileNotFoundError: [Errno 2] No such file or directory
2017-01-11 13:40:29 +01:00
.gitignore libselinux-2.5-1 2016-02-23 22:14:46 +01:00
libselinux-fedora.patch libselinux-2.5-15 2017-01-11 13:40:29 +01:00
libselinux.spec libselinux-2.5-15 2017-01-11 13:40:29 +01:00
rubytest.rb - Update to Upstream 2008-07-29 13:22:45 +00:00
selinuxconlist.8 Apply patch from eparis to fix leaked file descriptor in new labeling code 2012-11-05 11:54:39 -05:00
selinuxdefcon.8 Apply patch from eparis to fix leaked file descriptor in new labeling code 2012-11-05 11:54:39 -05:00
sources libselinux-2.5-1 2016-02-23 22:14:46 +01:00
STAGE1-libselinux Adding STAGE1 bootstrap recipe 2015-06-10 21:21:28 +02:00