replace rfc7512 URI patch with latest version in Fedora#172
Conversation
|
Patch orign now includes 2nd bugfix as well. |
|
I've added this to today's meeting agenda: |
|
In yesterday's meeting we agreed that having a look at the Fedora's version of the patch would make sense as that is in relatively wide use and the code paths touched don't seem at all Windows-specific. @dsommers is this the correct patch? |
I would suggest to use what you find here: https://src.fedoraproject.org/rpms/pkcs11-helper/tree/master This is the repository used by Koji to fetch the needed files doing the build. Koji is just the build system for Fedora packages. The master branch from the URL I'm pointing at is what is used in Fedora Rawhide (the "development" branch of the next Fedora). Alternatively you can pull what is found in the latest 'f??' branch, which targets a specific Fedora release - but that means you need to check the branch each time you consider fetching a new patch. I would suggest having a simple script downloading this patch, as when that patch disappears it means something has happened in the upstream pkcs11-helper. And also if the patching fails, then we get a different notification that something has changed. |
|
Sorry in advance for the wall of text, but it seemed to me code origin and timeline were also a source of confusion in the 2020-04-23 meeting... Origin of work seems to be @dwmw2's pull request (upstream).
|
|
Sorry, I got as far as updating OpenSC/pkcs11-helper#4 but hadn't updated the Fedora packages. Should be done now. |
|
To me it seems the build environment would have to be adapted to cleanly support downloaded patches, it already does some matching to find patches for extracted source packages. Most components to do more seem to be there but I am not confident to tinker around without creating a mess in the process. As a intermediate step (and to match the result of the 2020-04-23 meeting) we could for now just replace the local copy with the pristine Fedora patch (git header included). Thanks to @dwmw2's latest update this should work without drawbacks. If either updates @dsommers any reservations to the just make a static copy approach until someone is in the mood to tackle build environment refactoring? |
|
I would be fine with just updating the patch we have in this repository. |
|
For a quick solution, static copy is fine. But I think it way be worth looking into automating the patch fetching, and it seems like it will take quite some time before this issue will be resolved in pkcs11-helper natively. That said, it is @mattock who has the final word. |
URL: OpenVPN#172 Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
|
This is now part of #175 |
URL: #172 Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
The
pkcs11-helperpatch for handling rfc7512 PKCS11 URIs has known flaws:https://bugzilla.redhat.com/show_bug.cgi?id=1516474
https://bugzilla.redhat.com/show_bug.cgi?id=1825496
This got fixed in Fedora, which should have a large user base for
pkcs11-helper.All changes in patch are platform-independent so behaviour should be consistent.
Update might fix #1075 if problems are related to serial length.
Initial post not clear on this, the serial value looks "obfuscated".