Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79906 - [kconfig-hardened-check] Traceback errors

Attached to Project: Arch Linux
Opened by Undefined (Mailsh) - Tuesday, 10 October 2023, 17:55 GMT
Last edited by T.J. Townsend (blakkheim) - Tuesday, 10 October 2023, 18:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To T.J. Townsend (blakkheim)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello.

Description:

$ doas kconfig-hardened-check --mode verbose --print X86_64
-> No errors.

$ doas kconfig-hardened-check --mode verbose --config /proc/config.gz
[+] Special report mode: verbose
[+] Kconfig file to check: /proc/config.gz
Traceback (most recent call last):
File "/bin/kconfig-hardened-check", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/kconfig_hardened_check/__init__.py", line 1067, in main
arch, msg = detect_arch(args.config, supported_archs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/kconfig_hardened_check/__init__.py", line 285, in detect_arch
for line in f.readlines():
^^^^^^^^^^^^^
File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte


Additional info:
* package version: 0.6.1-3
* linux-hardened 6.5.6.hardened1-1
* python 3.11.5-2


Steps to reproduce:

$ doas kconfig-hardened-check --mode verbose --config /proc/config.gz
This task depends upon

Closed by  T.J. Townsend (blakkheim)
Tuesday, 10 October 2023, 18:12 GMT
Reason for closing:  Upstream
Additional comments about closing:  See comments in the upstream issue.
Comment by Jelle van der Waa (jelly) - Tuesday, 10 October 2023, 18:05 GMT
Does not seem that kconfig-hardenend-check can handle gzip compressed Kconfig files. See also https://github.com/a13xp0p0v/kernel-hardening-checker/issues/47

Loading...