Bug 42324 - В версии пакета 0.6.12-alt1 отсутствует утилита pkcs11_make_hash_link
Summary: В версии пакета 0.6.12-alt1 отсутствует утилита pkcs11_make_hash_link
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: pam_pkcs11 (show other bugs)
Version: unstable
Hardware: x86 Linux
: P5 normal
Assignee: manowar@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-04 13:00 MSK by Белаш Константин
Modified: 2022-04-07 22:59 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Белаш Константин 2022-04-04 13:00:25 MSK
Добрый день.

В версии пакета 0.6.12-alt1 не собрана утилита pkcs11_make_hash_link хотя в исходном коде она присутствует - https://github.com/OpenSC/pam_pkcs11/blob/pam_pkcs11-0.6.12/tools/pkcs11_make_hash_link

В пакете pam_pkcs11-0.6.10-alt6.x86_64 эта утилита есть.
Comment 1 manowar@altlinux.org 2022-04-04 13:16:28 MSK
* Sun Nov 20 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.6.9-alt2
- Restored ALT-specific features (from p7's 0.6.4-alt2, originally by raorn@):
  1. The example configs are placed in %_datadir/%name/.
  2. The use of OpenSSL's c_hash instead of pkcs11_make_hash_links
     is advised in the documentation; more options in example configs.

На самом деле c_rehash, в чейнджлоге опечатка. Возможно, нужно подправить документацию. Где, по вашему мнению, лучше всего это отразить?
Comment 2 Белаш Константин 2022-04-04 13:46:11 MSK
(Ответ для manowar@altlinux.org на комментарий #1)
> * Sun Nov 20 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.6.9-alt2
> - Restored ALT-specific features (from p7's 0.6.4-alt2, originally by
> raorn@):
>   1. The example configs are placed in %_datadir/%name/.
>   2. The use of OpenSSL's c_hash instead of pkcs11_make_hash_links
>      is advised in the documentation; more options in example configs.
> 
> На самом деле c_rehash, в чейнджлоге опечатка. Возможно, нужно подправить
> документацию. Где, по вашему мнению, лучше всего это отразить?

В использовании pam_pkcs11 я ориентировался на http://opensc.github.io/pam_pkcs11/doc/pam_pkcs11.html
на которую дана ссылка со страницы исходника (https://github.com/OpenSC/pam_pkcs11) и man pkcs11_make_hash_link.

На странице исходника (https://github.com/OpenSC/pam_pkcs11) вообще упоминается 
make_hash_link.sh, старое название pkcs11_make_hash_link.

Во всех этих источника не видел рекомендаций использовать c_rehash.
Comment 3 manowar@altlinux.org 2022-04-07 16:41:11 MSK
Тут на гитхабе отметили, что c_rehash не везде есть: https://github.com/OpenSC/pam_pkcs11/issues/63#issuecomment-1091633767 . Поэтому я решил вернуть скрипт.
Comment 4 Repository Robot 2022-04-07 17:05:23 MSK
pam_pkcs11-0.6.12.1-alt1 -> sisyphus:

 Thu Apr 07 2022 Paul Wolneykien <manowar@altlinux> 0.6.12.1-alt1
 - Updated version: upstream commit 4efa29f with fixed LGTM.com errors
   and spelling in configuration files and docs.
 - Bring back the pkcs11_make_hash_link tool with improved filename
   handling (thx krolikov) (closes: 42324).
Comment 5 Leonid Krivoshein 2022-04-07 22:59:48 MSK
Спасибо!