Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-118812

libselinux - DeprecationWarning: builtin type swigvarlink

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • libselinux
    • None
    • No
    • None
    • rhel-security-selinux
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      The warning was found out by anaconda team (RHEL-82838)

      Please provide the package NVR for which the bug is seen:

      libselinux-3.9-1.el10.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      Minimal reproducer for the swigvarlink DeprecationWarning

      #!/usr/bin/env python3
      import warnings
      warnings.simplefilter('always')
      import selinux
      

      When you run it on affected system the warning appeared.

      $ python3 minimal_reproducer.py
      <frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyPacked has no __module__ attribute
      <frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyObject has no __module__ attribute
      <sys>:0: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
      

      Expected results

      The empty output is expected

      Source of the issue

      The warning is caused by code generated with affected SWIG
      https://github.com/swig/swig/issues/2881

      Rebuild against fixed swig will solve it.

              vmojzis@redhat.com Vit Mojzis
              jplesnik@redhat.com Jitka Plesnikova
              Vit Mojzis Vit Mojzis
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: