Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122357 - sys-auth/pam_pkcs11 - handle fork correctly
Summary: sys-auth/pam_pkcs11 - handle fork correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 121078
  Show dependency tree
 
Reported: 2006-02-10 04:58 UTC by Alon Bar-Lev (RETIRED)
Modified: 2006-09-19 14:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
pam_pkcs11-0.5.3-daemon-init.patch (pam_pkcs11-0.5.3-daemon-init.patch,2.85 KB, patch)
2006-02-10 05:04 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
pam_pkcs11-0.5.3.ebuild.diff (pam_pkcs11-0.5.3.ebuild.diff,721 bytes, patch)
2006-02-10 05:06 UTC, Alon Bar-Lev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2006-02-10 04:58:47 UTC
Hello,

Congratulations for adding this ebuild!!! I posted an ebuild a long time ago (bug#95962).

Reported this issue to upstream long ago...

Please consider to add attached patch:
After fork, PKCS#11 should be reinitialized, this is stated explicitly in PKCS#11 standard.

Best Regards,
Alon Bar-Lev.
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2006-02-10 05:04:13 UTC
Created attachment 79421 [details, diff]
pam_pkcs11-0.5.3-daemon-init.patch

patch
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2006-02-10 05:06:06 UTC
Created attachment 79422 [details, diff]
pam_pkcs11-0.5.3.ebuild.diff

Modified ebuild
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2006-02-10 06:01:26 UTC
One last comment...
I believe that pam_pkcs11 should be placed in a different branch, since it is not a development tool.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-21 04:52:11 UTC
The move is now done, it was already requested actually.
Removing pam-bugs from CC as this package is under crypto herd and the change doesn't seem to relate to PAM itself.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-09-11 19:42:39 UTC
Alon, whenever you post a patch you should identify it's origin. Who wrote it, where did it come from? They should be credited in the changelog entry that goes along with the commit, so the information needs to be available on the bug.

Ideally the patch should already be included in the upstream development tree - whenever it is the case then the ebuild maintainer doesn't really have to think twice about including it in Gentoo - its quality is confirmed. So, if this patch has come from upstream, say so.

If it hasn't, have you sent it there? It's usually best to send it upstream before getting it included in Gentoo, or maybe doing both at the same time. Personally I always wait for patches to be accepted upstream before adding them, but that's just me. If you send it to a public mailing list, it's also a good idea to post the URL to the thread.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-11 23:34:25 UTC
(In reply to comment #5)
> Alon, whenever you post a patch you should identify it's origin. Who wrote it,

Me.

> where did it come from? 

My mind :)

> They should be credited in the changelog entry that
> goes along with the commit, so the information needs to be available on the
> bug.

OK.

> Ideally the patch should already be included in the upstream development tree -
> whenever it is the case then the ebuild maintainer doesn't really have to think
> twice about including it in Gentoo - its quality is confirmed. So, if this
> patch has come from upstream, say so.

No.
Upstream is not receptive.

In the past pam_pkcs11 was a separate component, I've mailed the developered this patch, but no reply.
Then pam_pkcs11 became hosted on opensc project. I thought someone will take it over.
Then they redo the site and added ticket system, so I've open a ticket.
http://www.opensc-project.org/pam_pkcs11/ticket/14

And nothing.

> If it hasn't, have you sent it there? It's usually best to send it upstream
> before getting it included in Gentoo, or maybe doing both at the same time.
> Personally I always wait for patches to be accepted upstream before adding
> them, but that's just me. If you send it to a public mailing list, it's also a
> good idea to post the URL to the thread.

I agree...
This is what I am doing.
But if upstream is not receptive, I think major issues like this one should be fixed.
There is no question that what they are doing violates PKCS#11 standard.

They have some more major problems in the slotevent component... But people can live with it.
Comment 7 Daniel Black (RETIRED) gentoo-dev 2006-09-19 14:19:52 UTC
fixed. Thanks for being persistent.