Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589250 - Make Firefox respect system CAs by adjusting dev-libs/nss
Summary: Make Firefox respect system CAs by adjusting dev-libs/nss
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-20 16:40 UTC by Joakim Tjernlund
Modified: 2017-08-26 17:56 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2016-07-20 16:40:43 UTC
According to https://bugzilla.mozilla.org/show_bug.cgi?id=449498 and
  https://bugzilla.mozilla.org/show_bug.cgi?id=454036
one can replace libnssckbi.so with p11-kit-trust.so (from app-crypt/p11-kit)
to make Firefox/Chrome respect system CA/Certs

I tried this using a symlink:
 gentoo-jocke lib64 # pwd
/usr/lib64
gentoo-jocke lib64 # ls -l libnssckbi.so
lrwxrwxrwx 1 root root 23 Jul 20 18:21 libnssckbi.so -> pkcs11/p11-kit-trust.so*

and it worked well in Firefox
Can we have a USE flag in dev-libs/nss which install a symlink instead of
libnssckbi.so ?
Comment 1 Joakim Tjernlund 2016-07-20 17:21:50 UTC
Question: Is there some portage feature I can use to protect the above
symlink so newer dev-libs/nss won't overwrite it?
Comment 2 Joakim Tjernlund 2016-07-22 15:25:39 UTC
I should mention that this is what Fedora does.
Comment 3 gentoo 2016-08-04 02:33:27 UTC
You might try adding an install mask. For example, in my /etc/portage/make.conf I have INSTALL_MASK="/usr/lib64/libnssckbi.so" , and so nothing will overwrite that file when emerged.
Comment 4 Joakim Tjernlund 2016-08-04 19:52:02 UTC
(In reply to gentoo from comment #3)
> You might try adding an install mask. For example, in my
> /etc/portage/make.conf I have INSTALL_MASK="/usr/lib64/libnssckbi.so" , and
> so nothing will overwrite that file when emerged.

Ahh, forgot about INSTALL_MASK.

Seems like already did this before my bug? Then I am not alone in
Gentoo land.
Mozilla team, is this on you radar?
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2016-08-04 20:10:49 UTC
On our radar, yes.  We haven't decided what we're going to do with it yet though.
Comment 6 Joakim Tjernlund 2016-09-05 21:25:47 UTC
(In reply to Ian Stakenvicius from comment #5)
> On our radar, yes.  We haven't decided what we're going to do with it yet
> though.

 * blip * :)
Comment 7 Joakim Tjernlund 2016-09-30 16:55:09 UTC
I think your radar needs some maintenance ... :)
Comment 8 Ian Stakenvicius (RETIRED) gentoo-dev 2016-09-30 17:08:35 UTC
(In reply to Joakim Tjernlund from comment #7)
> I think your radar needs some maintenance ... :)

The problem here is that I really do not feel qualified to mess with a security package like dev-libs/nss at all, and have been riding the coattails of those before me in any commits that I do.  Those that *are* qualified have been significantly unavailable as of late.  

I would recommend sticking with the INSTALL_MASK method to protect your override for now.  We will absolutely leave the bug open in the meantime.
Comment 9 Jory A. Pratt gentoo-dev 2016-10-03 00:39:20 UTC
(In reply to Ian Stakenvicius from comment #8)
> (In reply to Joakim Tjernlund from comment #7)
> > I think your radar needs some maintenance ... :)
> 
> The problem here is that I really do not feel qualified to mess with a
> security package like dev-libs/nss at all, and have been riding the
> coattails of those before me in any commits that I do.  Those that *are*
> qualified have been significantly unavailable as of late.  
> 
> I would recommend sticking with the INSTALL_MASK method to protect your
> override for now.  We will absolutely leave the bug open in the meantime.

Ian, it is fine to override with an experimental/unsupported useflag. We will not be responsible for any break and it needs to be made extremely clear.
Comment 10 Jory A. Pratt gentoo-dev 2017-08-26 17:56:54 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team