Upstream update available: selinux-python 3.8.1 → 20200710 #1

Open
opened 2026-04-28 02:15:32 +03:00 by sbelikov · 0 comments
Owner

Upstream update available: selinux-python 3.8.120200710

Package

  • Package: selinux-python
  • RPM name: selinux-python
  • Branch: niceos-5.2
  • Current EVR: 3.8.1-1
  • Update class: major
  • Compare method: python_rpm
  • Update policy: leaf
  • Risk tags: github-upstream

Upstream

Signals

  • Security-relevant keywords detected: True
  • Policy blocked: False
  • Policy reason: -
  • Labels: ai-summary, bot, needs-build, needs-triage, priority/high, security-release, update/major, upstream-update, upstream/github

NiceSOFT AI preliminary analysis

1. Краткий вывод

Это обновление включает удаление устаревших заголовочных файлов (flask.h, av_permissions.h) и изменение поведения компиляции через новые требования к флагу -fno-semantic-interposition. Обновление помечено как major и содержит ключевые слова безопасности, однако конкретные уязвимости не указаны в тексте релизов.

2. Риск для НАЙС.ОС

high.
Обновление является мажорным (update_class: major) и затрагивает критически важные компоненты безопасности (SELinux). Удаление заголовков и изменение логики обработки контекстов могут нарушить работу приложений, зависящих от старых API, а новые требования к компиляции могут вызвать сбои сборки или выполнения.

3. Security/CVE

Во входных данных присутствуют security_keywords_detected_by_script: True и список закрытых Issues (например, #248, #239), но конкретные CVE-идентификаторы в тексте релизов отсутствуют. Нельзя утверждать наличие конкретных уязвимостей без явного указания CVE или детального описания эксплойта в предоставленном тексте.

4. ABI/API риск

Высокий риск нарушения ABI/API.

  • Удалены файлы selinux/flask.h, selinux/av_permissions.h и sepol/policydb/flask.h. Любое приложение, включающее эти заголовки напрямую, перестанет компилироваться.
  • Указано, что matchpathcon интерфейсы депрецированы.
  • В semanage изменен модуль Python (ipaddress вместо IPy), что может повлиять на зависимости Python-пакетов внутри дистрибутива.
  • Для корректной работы требуется флаг -fno-semantic-interposition, отсутствие которого может привести к проблемам с линковкой или поведением динамических библиотек.

5. Риск для RPM-сборки

  • CFLAGS: В релиз-нотах предупреждается, что пользовательские CFLAGS могут сломать сборку. Необходимо проверить %global _flags или настройки в specfile на предмет конфликтов с новым требованием -fno-semantic-interposition.
  • Python dependencies: Замена IPy на ipaddress в semanage требует наличия пакета python3-ipaddress (обычно встроен в стандартную библиотеку, но стоит проверить BuildRequires).
  • Build customization: Появилась опция PYTHON_SETUP_ARGS для кастомизации setup.py. Если в specfile есть кастомная логика сборки Python-части, она может потребовать обновления.
  • %check: Улучшена проверка валидности символов в checkpolicy; если в системе есть нестандартные политики с недопустимыми символами, тесты могут начать падать.

6. Проверки мейнтейнера

  • Проверить наличие в specfile включений удаленных заголовков (flask.h, av_permissions.h).
  • Проверить наличие флага -fno-semantic-interposition в секции %build или переменных окружения.
  • Провести rpmlint и mock сборку с чистым окружением.
  • Проверить работу semanage и setfiles после установки.
  • Проверить совместимость Python-зависимостей (semanage -> ipaddress).
  • Проверить, не используются ли в системе старые API matchpathcon в пользовательских политиках или скриптах.

7. Рекомендация

blocked manual review

8. Основание рекомендации

Несмотря на то, что это обновление безопасности, оно классифицировано как major с удалением публичного API (заголовков) и изменениями в компиляторе. Автоматическое обновление рискованно из-за потенциального разрыва совместимости с пользовательскими приложениями и сложностей с настройкой флагов компиляции. Требуется ручная проверка спецификации и тестирование в изолированной среде перед включением в репозиторий.

Upstream release notes / description

User-visible changes

  • selinux/flask.h, selinux/av_permissions.h and sepol/policydb/flask.h were removed

    The flask.h and av_permissions.h header files were deprecated and
    all selinux userspace references to them were removed in
    commit 76913d8adb61b5 ("Deprecate use of flask.h and av_permissions.h.")
    back in 2014 and included in the 20150202 / 2.4 release.
    All userspace object managers should have been updated
    to use the dynamic class/perm mapping support since that time.
    Remove these headers finally to ensure that no users remain and
    that no future uses are ever introduced.

    Use string_to_security_class(3) and string_to_av_perm(3) to map the class and
    permission names to their policy values, or selinux_set_mapping(3) to create a
    mapping from class and permission index values used by the application to the
    policy values.

  • Removed restrictions in libsepol and checkpolicy that required all declared
    initial SIDs to be assigned a context.

  • Support for new policy capability genfs_seclabel_symlinks

  • New setfiles -E option - treat conflicting specifications as errors, such
    as where two hardlinks for the same inode have different contexts.

  • restorecond_user.service - new systemd user service which runs restorecond -u

  • setsebool -V reports errors from commit phase

  • Improved man pages

  • semanage uses ipaddress Python module instead of IPy

  • matchpathcon related interfaces are deprecated

  • selinuxfs is mounted with noexec and nosuid

  • the dso wrappers for internal calls were removed and it is now strongly recommended to CFLAGS with
    -fno-semantic-interposition

  • security_compute_user() was deprecated

  • checkpolicy treats invalid characters as an error - might break rare use cases (intentionally)

  • New restorecon -x option which prevents it from crossing file system boundaries.

  • Handle semanage module in semanage bash completion

  • sepolgen-ifgen parses a gen_tunable statement as bool

  • semanage handles getprotobyname() failure case on Debian where /etc/protocols does not contain an entry for "ipv4"

Packaging-relevant changes

  • Setting CFLAGS during the make process will cause the omission of many defaults. While the project strives
    to provide a reasonable set of default flags, custom CFLAGS could break the build, or have other undesired
    changes on the build output. Thus, be very careful when setting CFLAGS. CFLAGS that are encouraged to be
    set when overriding are:

    • -fno-semantic-interposition for gcc or compilers that do not do this. clang does this by default. clang-10 and up
      will support passing this flag, but ignore it. Previous clang versions fail.
  • setup.py builds can be customized using PYTHON_SETUP_ARGS, e.g. to for
    Debian Python layout use: make PYTHON_SETUP_ARGS=--install-layout=deb ...

Development-relevant changes

  • Improved README which was renamed to README.md and converted to markdown.

  • Added Travis CI job to run SELinux kernel testsuite on latest Fedora cloud image

Issues fixed

NiceOS maintainer checklist

  • Confirm that the detected version is a stable upstream release.
  • Check upstream changelog for security fixes, ABI/API changes and build-system changes.
  • Check ABI/API compatibility and reverse dependencies.
  • Download source into NiceOS lookaside storage.
  • Update Version and related fields in SPECS/*.spec only if policy allows it.
  • Regenerate SOURCES/sources.lock.json, manifests, metadata and SBOM.
  • Build SRPM/RPM in a clean NiceOS buildroot.
  • Run package smoke tests.
  • Link PR/build logs and close this issue after update or triage.

Bot metadata

  • Tool: niceos_upstream_monitor.py 1.4
  • Generated at: 2026-04-27T23:15:32Z
<!-- niceos-upstream-monitor:fingerprint=upstream-update:selinux-python:20200710 --> <!-- niceos-upstream-monitor:package=selinux-python --> <!-- niceos-upstream-monitor:current=3.8.1 --> <!-- niceos-upstream-monitor:latest=20200710 --> # Upstream update available: `selinux-python` `3.8.1` → `20200710` ## Package - Package: `selinux-python` - RPM name: `selinux-python` - Branch: `niceos-5.2` - Current EVR: `3.8.1-1` - Update class: `major` - Compare method: `python_rpm` - Update policy: `leaf` - Risk tags: `github-upstream` ## Upstream - Upstream type: `github` - Upstream project: `SELinuxProject/selinux` - Upstream URL: https://github.com/SELinuxProject/selinux - Detected version: `20200710` - Tag/release: `20200710` - Source: `github_release` - Published: `2020-07-10T15:42:23Z` - Release URL: https://github.com/SELinuxProject/selinux/releases/tag/20200710 - Source URL: https://api.github.com/repos/SELinuxProject/selinux/tarball/20200710 - Pre-release: `False` ## Signals - Security-relevant keywords detected: `True` - Policy blocked: `False` - Policy reason: `-` - Labels: `ai-summary, bot, needs-build, needs-triage, priority/high, security-release, update/major, upstream-update, upstream/github` ## NiceSOFT AI preliminary analysis ### 1. Краткий вывод Это обновление включает удаление устаревших заголовочных файлов (`flask.h`, `av_permissions.h`) и изменение поведения компиляции через новые требования к флагу `-fno-semantic-interposition`. Обновление помечено как `major` и содержит ключевые слова безопасности, однако конкретные уязвимости не указаны в тексте релизов. ### 2. Риск для НАЙС.ОС **high**. Обновление является мажорным (`update_class: major`) и затрагивает критически важные компоненты безопасности (SELinux). Удаление заголовков и изменение логики обработки контекстов могут нарушить работу приложений, зависящих от старых API, а новые требования к компиляции могут вызвать сбои сборки или выполнения. ### 3. Security/CVE Во входных данных присутствуют `security_keywords_detected_by_script: True` и список закрытых Issues (например, #248, #239), но **конкретные CVE-идентификаторы в тексте релизов отсутствуют**. Нельзя утверждать наличие конкретных уязвимостей без явного указания CVE или детального описания эксплойта в предоставленном тексте. ### 4. ABI/API риск Высокий риск нарушения ABI/API. - Удалены файлы `selinux/flask.h`, `selinux/av_permissions.h` и `sepol/policydb/flask.h`. Любое приложение, включающее эти заголовки напрямую, перестанет компилироваться. - Указано, что `matchpathcon` интерфейсы депрецированы. - В `semanage` изменен модуль Python (`ipaddress` вместо `IPy`), что может повлиять на зависимости Python-пакетов внутри дистрибутива. - Для корректной работы требуется флаг `-fno-semantic-interposition`, отсутствие которого может привести к проблемам с линковкой или поведением динамических библиотек. ### 5. Риск для RPM-сборки - **CFLAGS**: В релиз-нотах предупреждается, что пользовательские `CFLAGS` могут сломать сборку. Необходимо проверить `%global _flags` или настройки в `specfile` на предмет конфликтов с новым требованием `-fno-semantic-interposition`. - **Python dependencies**: Замена `IPy` на `ipaddress` в `semanage` требует наличия пакета `python3-ipaddress` (обычно встроен в стандартную библиотеку, но стоит проверить `BuildRequires`). - **Build customization**: Появилась опция `PYTHON_SETUP_ARGS` для кастомизации `setup.py`. Если в `specfile` есть кастомная логика сборки Python-части, она может потребовать обновления. - **%check**: Улучшена проверка валидности символов в `checkpolicy`; если в системе есть нестандартные политики с недопустимыми символами, тесты могут начать падать. ### 6. Проверки мейнтейнера - [ ] Проверить наличие в `specfile` включений удаленных заголовков (`flask.h`, `av_permissions.h`). - [ ] Проверить наличие флага `-fno-semantic-interposition` в секции `%build` или переменных окружения. - [ ] Провести `rpmlint` и `mock` сборку с чистым окружением. - [ ] Проверить работу `semanage` и `setfiles` после установки. - [ ] Проверить совместимость Python-зависимостей (`semanage` -> `ipaddress`). - [ ] Проверить, не используются ли в системе старые API `matchpathcon` в пользовательских политиках или скриптах. ### 7. Рекомендация **blocked manual review** ### 8. Основание рекомендации Несмотря на то, что это обновление безопасности, оно классифицировано как `major` с удалением публичного API (заголовков) и изменениями в компиляторе. Автоматическое обновление рискованно из-за потенциального разрыва совместимости с пользовательскими приложениями и сложностей с настройкой флагов компиляции. Требуется ручная проверка спецификации и тестирование в изолированной среде перед включением в репозиторий. ## Upstream release notes / description User-visible changes -------------------- * selinux/flask.h, selinux/av_permissions.h and sepol/policydb/flask.h were removed The flask.h and av_permissions.h header files were deprecated and all selinux userspace references to them were removed in commit 76913d8adb61b5 ("Deprecate use of flask.h and av_permissions.h.") back in 2014 and included in the 20150202 / 2.4 release. All userspace object managers should have been updated to use the dynamic class/perm mapping support since that time. Remove these headers finally to ensure that no users remain and that no future uses are ever introduced. Use string_to_security_class(3) and string_to_av_perm(3) to map the class and permission names to their policy values, or selinux_set_mapping(3) to create a mapping from class and permission index values used by the application to the policy values. * Removed restrictions in libsepol and checkpolicy that required all declared initial SIDs to be assigned a context. * Support for new policy capability genfs_seclabel_symlinks * New `setfiles -E` option - treat conflicting specifications as errors, such as where two hardlinks for the same inode have different contexts. * `restorecond_user.service` - new systemd user service which runs `restorecond -u` * `setsebool -V` reports errors from commit phase * Improved man pages * `semanage` uses ipaddress Python module instead of IPy * matchpathcon related interfaces are deprecated * selinuxfs is mounted with noexec and nosuid * the dso wrappers for internal calls were removed and it is now strongly recommended to CFLAGS with `-fno-semantic-interposition` * `security_compute_user()` was deprecated * checkpolicy treats invalid characters as an error - might break rare use cases (intentionally) * New `restorecon -x` option which prevents it from crossing file system boundaries. * Handle `semanage module` in semanage bash completion * `sepolgen-ifgen` parses a gen_tunable statement as bool * `semanage` handles getprotobyname() failure case on Debian where /etc/protocols does not contain an entry for "ipv4" Packaging-relevant changes -------------------------- * Setting CFLAGS during the make process will cause the omission of many defaults. While the project strives to provide a reasonable set of default flags, custom CFLAGS could break the build, or have other undesired changes on the build output. Thus, be very careful when setting CFLAGS. CFLAGS that are encouraged to be set when overriding are: - -fno-semantic-interposition for gcc or compilers that do not do this. clang does this by default. clang-10 and up will support passing this flag, but ignore it. Previous clang versions fail. * `setup.py` builds can be customized using PYTHON_SETUP_ARGS, e.g. to for Debian Python layout use: `make PYTHON_SETUP_ARGS=--install-layout=deb ...` Development-relevant changes ---------------------------- * Improved README which was renamed to README.md and converted to markdown. * Added Travis CI job to run SELinux kernel testsuite on latest Fedora cloud image Issues fixed ------------ * https://github.com/SELinuxProject/selinux/issues/248 * https://github.com/SELinuxProject/selinux/issues/239 * https://github.com/SELinuxProject/selinux/issues/237 * https://github.com/SELinuxProject/selinux/issues/225 * https://github.com/SELinuxProject/selinux/issues/217 * https://github.com/SELinuxProject/selinux/issues/208 * https://github.com/SELinuxProject/selinux/issues/204 * https://github.com/SELinuxProject/selinux/issues/187 * https://github.com/SELinuxProject/selinux/issues/179 * https://github.com/SELinuxProject/selinux/issues/164 * https://github.com/SELinuxProject/selinux/issues/70 * https://github.com/SELinuxProject/selinux/issues/28 ## NiceOS maintainer checklist - [ ] Confirm that the detected version is a stable upstream release. - [ ] Check upstream changelog for security fixes, ABI/API changes and build-system changes. - [ ] Check ABI/API compatibility and reverse dependencies. - [ ] Download source into NiceOS lookaside storage. - [ ] Update `Version` and related fields in `SPECS/*.spec` only if policy allows it. - [ ] Regenerate `SOURCES/sources.lock.json`, manifests, metadata and SBOM. - [ ] Build SRPM/RPM in a clean NiceOS buildroot. - [ ] Run package smoke tests. - [ ] Link PR/build logs and close this issue after update or triage. ## Bot metadata - Tool: `niceos_upstream_monitor.py 1.4` - Generated at: `2026-04-27T23:15:32Z`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rpms/selinux-python#1
No description provided.