Commit Graph

631 Commits

Author SHA1 Message Date
Rachel Sibley
aba7ab1e5f Initial commit for downstream tests to be run using the standard test interface
The following steps are used to execute the tests using the standard test interface:

Docker

    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS=docker:docker.io/library/fedora:26 TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags container tests.yml

Classic

    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS="" TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags classic tests.yml

https://src.fedoraproject.org/rpms/libselinux/pull-request/1
2017-10-31 21:18:48 +01:00
Petr Lautrbach
f2f46ec91f libselinux-2.7-5.fc28
- Drop golang bindings
- Add support for pcre2 to pkgconfig definition
2017-10-20 10:50:59 +02:00
Petr Šabata
85e255c58e Enable the python3 subpackages on EL
Signed-off-by: Petr Šabata <contyk@redhat.com>
2017-09-27 13:47:47 +02:00
Petr Lautrbach
baf50b274a Require pcre2 instead of pcre 2017-09-26 21:24:15 +02:00
Igor Gnatenko
3cd1123bc3 remove %clean section
Again, it is not needed since EL5.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-09-01 09:27:36 +02:00
Igor Gnatenko
61aa00d32a simplify python2/python3/devel filelists
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-09-01 09:27:20 +02:00
Igor Gnatenko
e1a61a52a3 remove defattr
It is default since... forever.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-09-01 09:25:17 +02:00
Igor Gnatenko
6cd863ee67 remove BuildRoot tag
It's not needed since EL5.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-09-01 09:22:50 +02:00
Igor Gnatenko
f47837476b no need to BuildRequire pkgconfig
It's completely useless.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-09-01 09:22:29 +02:00
Zbigniew Jędrzejewski-Szmek
a12937f334 Bump release 2017-08-19 16:46:16 -04:00
Zbigniew Jędrzejewski-Szmek
90861efd1e Also add Provides for the old name without %_isa 2017-08-19 16:44:54 -04:00
Zbigniew Jędrzejewski-Szmek
7b100f12bd Python 3 binary package renamed to python3-libselinux 2017-08-12 08:26:21 -04:00
Zbigniew Jędrzejewski-Szmek
36400b895d Python 2 binary package renamed to python2-libselinux 2017-08-12 08:22:51 -04:00
Petr Lautrbach
2f49e06f77 libselinux-2.7-1
- use pcre2 instead of pcre1
- Update to upstream release 2017-08-04
2017-08-07 13:56:34 +02:00
Fedora Release Engineering
64cffb51b8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 02:15:13 +00:00
Petr Lautrbach
e8da680b55 Use /run instead of /var/run
Follow the guidelines for tmpfiles.d
https://fedoraproject.org/wiki/Packaging:Tmpfiles.d

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1476798
2017-08-02 10:52:20 +02:00
Florian Weimer
6979f56e01 Rebuild with binutils fix for ppc64le (#1475636) 2017-07-29 20:38:47 +02:00
Petr Lautrbach
81b36a1832 libselinux-2.6-8
- Always unmount selinuxfs for SELINUX=disabled
2017-07-28 14:05:22 +02:00
Fedora Release Engineering
54afe11ce5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 19:41:55 +00:00
Petr Lautrbach
ea9eee161e libselinux-2.6-6
- Don't finalize mount state in selinux_set_policy_root()
see https://marc.info/?l=selinux&m=149323750632253&w=2

- Follow upstream and rename _selinux.so to _selinux.cpython-36m-x86_64-linux-gnu.so
2017-04-28 11:57:59 +02:00
Petr Lautrbach
5239c15656 libselinux-2.6-5
- Fix setfiles progress indicator
2017-04-06 16:37:12 +02:00
Petr Lautrbach
7f0ad327e8 libselinux-2.6-4
- Fix segfault in selinux_restorecon_sb() (#1433577)
- Change matchpathcon usage to match with matchpathcon manpage
- Fix a corner case getsebool return value
2017-03-22 10:15:36 +01:00
Petr Lautrbach
26ed72a248 libselinux-2.6-3
- Fix 'semanage boolean -m' to modify active value
2017-03-14 12:12:35 +01:00
Petr Lautrbach
2f333570bb libselinux-2.6-2
- Fix FTBFS - fatal error (#1427902)
2017-03-02 13:19:30 +01:00
Petr Lautrbach
6146f71749 libselinux-2.6-1
- Update to upstream release 2016-10-14
2017-02-20 12:29:31 +01:00
Fedora Release Engineering
08297986e5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 19:26:14 +00:00
Stephen Gallagher
899f0c50fa Add missing %license macro 2017-02-09 13:47:37 +01:00
Vít Ondruch
202367a2aa Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4 2017-01-13 14:16:06 +01:00
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
Charalampos Stratakis
1fdaaa8476 Rebuild for Python 3.6 2016-12-11 14:56:01 +01:00
Petr Lautrbach
75cfa0f249 libselinux-2.5-13
- Fix pointer handling in realpath_not_final (#1376598)
2016-11-22 17:10:41 +01:00
Petr Lautrbach
5ad771ed68 libselinux-2.5-12
- Fix -Wsign-compare warnings
- Drop unused stdio_ext.h header file
- Kill logging check for selinux_enabled()
- Drop usage of _D_ALLOC_NAMLEN
- Add openrc_contexts functions
- Fix redefinition of XATTR_NAME_SELINUX
- Correct error path to always try text
- Clean up process_file()
- Handle NULL pcre study data
- Fix in tree compilation of utils that depend on libsepol
2016-10-04 08:23:03 +02:00
Petr Lautrbach
1eb2b767ff libselinux-2.5-11
- Rebuilt with libsepol-2.5-9
2016-08-01 12:08:32 +02:00
Fedora Release Engineering
4d08471b1c - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 07:46:05 +00:00
Petr Lautrbach
03c0649ec8 Update libselinux-fedora.patch and drop 0001-libselinux-Change-the-location-of-_selinux.so.patch 2016-07-14 10:46:44 +02:00
Petr Lautrbach
27e80a61d2 libselinux-2.5-9
- Clarify is_selinux_mls_enabled() description
- Explain how to free policy type from selinux_getpolicytype()
- Compare absolute pathname in matchpathcon -V
- Add selinux_snapperd_contexts_path()
2016-06-27 13:36:37 +02:00
Petr Lautrbach
b95f8bdd48 libselinux-2.5-8
There was a change in swig-3.10 to use importlib instead of imp. While
the implementation with imp looked for _selinux.so also in the directory
where __init__.py was, importlib search only standard paths. It means that we
need to move _selinux.so from $(PYLIBDIR)/site-packages/selinux/
to $(PYLIBDIR)/site-packages/

Fixes:
>>> import selinux
Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/selinux/__init__.py", line 18, in swig_import_helper
    return importlib.import_module(mname)
  File "/usr/lib64/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named '_selinux'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.5/site-packages/selinux/__init__.py", line 21, in <module>
    _selinux = swig_import_helper()
  File "/usr/lib64/python3.5/site-packages/selinux/__init__.py", line 20, in swig_import_helper
    return importlib.import_module('_selinux')
  File "/usr/lib64/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_selinux'
2016-06-24 16:34:51 +02:00
Petr Lautrbach
fd9d18361d libselinux-2.5-7
* Thu Jun 23 2016 Petr Lautrbach <plautrba@redhat.com> - 2.5-7
- Modify audit2why analyze function to use loaded policy
- Sort object files for deterministic linking order
- Respect CC and PKG_CONFIG environment variable
- Avoid mounting /proc outside of selinux_init_load_policy()
2016-06-23 12:32:02 +02:00
Petr Lautrbach
602edce9f1 libselinux-2.5-6
- Fix multiple spelling errors
2016-05-06 16:07:39 +02:00
Petr Lautrbach
a465d99db3 libselinux-2.5-5
- Rebuilt with libsepol-2.5-5
2016-05-02 09:24:59 +02:00
Petr Lautrbach
836fb9df75 Use %autosetup to simplify updates 2016-04-29 12:25:15 +02:00
Petr Lautrbach
7359ba5979 libselinux-2.5-4
- Fix typo in sefcontext_compile.8
2016-04-29 12:19:01 +02:00
Petr Lautrbach
d11c40ba8a libselinux-2.5-3
- Fix location of selinuxfs mount point
- Only mount /proc if necessary
- procattr: return einval for <= 0 pid args
- procattr: return error on invalid pid_t input
2016-04-08 20:35:44 +02:00
Petr Lautrbach
408641d228 libselinux-2.5-2.fc24
- Use fully versioned arch-specific requires

https://fedoraproject.org/wiki/Packaging:Guidelines#Requiring_Base_Package
2016-02-28 11:31:50 +01:00
Petr Lautrbach
c28c9a3ef2 libselinux-2.5-1
- Update to upstream release 2016-02-23
2016-02-23 22:14:46 +01:00
Petr Lautrbach
ba888ffe29 Remove unused files
- libselinux-rpm_execcon.patch is already applied in upstream sources
- make-rhat-patches.sh was renamed and pushed to
  https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
2016-02-22 17:10:51 +01:00
Petr Lautrbach
a1ef8d83ed BuildRequires: python 2016-02-21 14:58:10 +01:00
Petr Lautrbach
e58e944835 libselinux-2.5-0.1.rc1
Update to upstream rc1 release 2016-01-07
2016-02-21 14:35:44 +01:00
Dennis Gilmore
dfc8a0a1f2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 03:54:00 +00:00
Vít Ondruch
ab78d06d07 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3 2016-01-12 12:54:04 +01:00