Merge ~ahasenack/ubuntu/+source/libpam-ccreds:artful-libpam-ccreds-init-gcrypt-869166 into ~usd-import-team/ubuntu/+source/libpam-ccreds:ubuntu/devel
| Status: | Merged |
|---|---|
| Merge reported by: | Robie Basak |
| Merged at revision: | cbc97871de400f6b62af5deaffb59fc174441fb3 |
| Proposed branch: | ~ahasenack/ubuntu/+source/libpam-ccreds:artful-libpam-ccreds-init-gcrypt-869166 |
| Merge into: | ~usd-import-team/ubuntu/+source/libpam-ccreds:ubuntu/devel |
| Diff against target: |
76 lines (+43/-1) 4 files modified
debian/changelog (+7/-0) debian/control (+2/-1) debian/patches/0003-initialize-libgcrypt.patch (+33/-0) debian/patches/series (+1/-0) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robie Basak | 2017-07-25 | Approve on 2017-07-28 | |
| ChristianEhrhardt | 2017-07-20 | Approve on 2017-07-21 | |
|
Review via email:
|
|||
Description of the Change
Initialize libgcrypt before calling any of its functions. The patch was slightly modified by me to check if the library wasn't initialised already using the advice in "2.4 Initializing the library" of the gcrypt info page. Also see https:/
I forwarded the patch via email to <email address hidden>. The bugzilla link at the bottom of their page just redirects back to the main site.
UPDATE Jul 20th: patch was accepted by upstream: https:/
Test instructions:
* in an artful container/kvm, install libpam-ccreds:
$ sudo apt install libpam-ccreds
* in one terminal, tail -f /var/log/syslog
* in another terminal, run:
$ sudo cc_test -store any ubuntu ubuntu
pam_cc_
* Observe that the syslog file gets this warning:
Jul 20 19:13:59 artful-ccreds-test cc_test: Libgcrypt warning: missing initialization - please fix the application
* Install the fixed package. Build it yourself and install, or add this ppa (you may have to sudo apt install software-
$ sudo add-apt-repository -y -u ppa:ahasenack/
* Rerun the cc_test command. This time there should be no warning in syslog. Also, since you ran this command before with the -store action, you can try it now with the -validate action:
$ sudo cc_test -validate any ubuntu ubuntu
pam_cc_
- a82dd90... by Andreas Hasenack on 2017-07-20
| Andreas Hasenack (ahasenack) wrote : | # |
Patch was accepted and merged upstream:
https:/
- cbc9787... by Andreas Hasenack on 2017-07-28
| Robie Basak (racb) wrote : | # |
I appreciate the attention to detail - Debian and Ubuntu bug references in both the changelog and dep3 header, and the descriptive explanation in the patch. Thanks!


Code, Dep8, Changelog all looks good to me.
Thanks to forward the change as well.
Finally I also tested the proposed fix form the ppa and the fix as well as the steps to trigger were perfect.
Also given the update frequency on this in the past it is unlikely we have to merge this very often. And since Debian knows about the bug all is fine.
Thanks Andreas, approving