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
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
|
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.
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