Package: policyd-rate-limit
Version: 1.0.1.1-2.1
Severity: normal

Dear Maintainer,

Starting the application with the current Debian-supplied Python version 
results in a failure
to start at all and exits with a failure.

The report logged by systemd is:
   config.setup()
   File "/usr/lib/python3/dist-packages/policyd_rate_limit/utils.py", line 144, 
in setup
     self._config = Config(config_file)
                    ^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/policyd_rate_limit/utils.py", line 88, 
in __init__
     self._config = yaml.load(f, loader=FullLoader)
                                        ^^^^^^^^^^
   NameError: name 'FullLoader' is not defined
   policyd-rate-limit.service: Main process exited, code=exited, 
status=1/FAILURE
   policyd-rate-limit.service: Failed with result 'exit-code'.

This is fixed by 
  88c88
  <                             self._config = yaml.load(f)
  ---
  >                             self._config = yaml.load(f, 
Loader=yaml.SafeLoader)
to the file /usr/lib/python3/dist-packages/policyd_rate_limit/utils.py

This was previously reported in 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022034
in 2022 and not fixed.

This is fixed in the source repository 3 years ago via commit:
  
https://github.com/nitmir/policyd-rate-limit/commit/6c155a633bf5e9986304b1ca009a4716846e66f9

Ultimately, this and other changes are updated in v1.2.0 which was released 
August 27 2023
https://github.com/nitmir/policyd-rate-limit/releases/tag/v1.2.0

This package should be updated to v1.2.0 for trixie.

-- System Information:
Debian Release: 12.5
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-15-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages policyd-rate-limit depends on:
ii  adduser              3.134
ii  init-system-helpers  1.65.2
ii  python3              3.11.2-1+b1
ii  python3-yaml         6.0-3+b2

policyd-rate-limit recommends no packages.

Versions of packages policyd-rate-limit suggests:
ii  python3-mysqldb   1.4.6-2+b1
pn  python3-psycopg2  <none>

-- Configuration Files:
/etc/policyd-rate-limit.yaml [Errno 13] Permission denied: 
'/etc/policyd-rate-limit.yaml'

-- no debconf information

Reply via email to