Support XDG basedir specification
Categories
(NSS :: Libraries, defect, P5)
Tracking
(Not tracked)
People
(Reporter: Heintzmann.Eric, Assigned: edenisfa)
References
(Depends on 1 open bug)
Details
Attachments
(3 files)
1.41 KB,
patch
|
franziskus
:
review-
|
Details | Diff | Splinter Review |
3.48 KB,
patch
|
Details | Diff | Splinter Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Reporter | ||
Comment 2•12 years ago
|
||
Updated•10 years ago
|
Comment 3•10 years ago
|
||
Updated•7 years ago
|
Comment 6•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Assignee | ||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Assignee | ||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
•
|
||
Bob,
As part of fixing this, we made a function in the nsssysinit.c non-static (so it could be tested).
I've added a .def file to the nsssysinit.so build so that we don't pollute the ABI. This does result in ABI changes (from the ABI compatibility check):
+Function symbols changes summary: 2 Removed, 0 Added function symbols not referenced by debug info
+Variable symbols changes summary: 0 Removed, 0 Added variable symbol not referenced by debug info
+
+2 Removed function symbols not referenced by debug info:
+
+ _fini
+ _init
+
It seems like this is very likely OK: https://sourceware.org/ml/binutils/2018-05/msg00012.html
However, I just want to confirm that hiding the _init and _fini symbols isn't an issue in your experience? We hide those symbols for other libraries, and I don't see any special behavior here that warrants caution, but I thought that I'd double check.
Comment 17•6 years ago
|
||
Loosing those symbols should be fine.
On the base issue, there is a migration issue for us. We'll need to keep the old behavior on our existing RHEL platforms (at least the behavior without the environment variable). Fedora can move forward because applications that depend on the hard coded location can be changed to accommodate the move. I'll leave daiki to comment on how he wants to handle this in RHEL
Comment 18•6 years ago
|
||
Martin/Bob: Does Firefox use nsssysinit? Is my understanding correct that this change would only be applicable to Fedora/RHEL?
Comment 19•6 years ago
|
||
Ryan, that's a good question. Firefox builds don't exclude this library. That might be a mistake, because the make builds exclude it everywhere except non-Android Linux. Unfortunately, that will require some testing.
We also noticed that the file contains #ifdef XP_WIN
and #ifdef XP_UNIX
, which are pointless given the build conditions on it. I'll open a bug to remove that code.
Daiki, are you OK with landing this and dealing with the RHEL changes later, or would you like to hold it for those?
Comment 20•6 years ago
|
||
(In reply to Martin Thomson [:mt:] from comment #19)
Daiki, are you OK with landing this and dealing with the RHEL changes later, or would you like to hold it for those?
Yes, we can adjust the RHEL packages later for this change (if the migration is really needed; the approach in comment 13 sounds good enough).
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
Opened one for Kmail: https://bugs.kde.org/show_bug.cgi?id=403752
Comment 23•5 years ago
|
||
Can someone please explain why this is not working on my archlinux (nss v3.45-1) system? On my test case, everytime I launch qutebrowser it will create a ~/.pki, no matter if I remove this dir before the launching or even creating an empty one on ~/.local/share/pki/nssdb.
Comment 24•4 years ago
|
||
Still same issue as @AlexandreProvencio, but I don't even know which application creates it
Comment 25•4 years ago
|
||
Same issue on Ubuntu 20.04.1 LTS
Some app, likely firefox or vscode, appears to create a ~/.pki folder on startup
Comment 26•4 years ago
|
||
(In reply to lgarczyn from comment #25)
Same issue on Ubuntu 20.04.1 LTS
Some app, likely firefox or vscode, appears to create a ~/.pki folder on startup
Can confirm it's visual studio code, version 1.52.1
Comment 27•4 years ago
|
||
You're seeing this because the file that was patched is not normally used by NSS using applications. That's what I was asking about in Comment #18. NSS using applications are very unlikely to be using this, the file is a bit more like a 'contrib' file. It's mostly harmless, it'll do something for some platforms (like RHEL), but it's not the main entry point most main NSS-using apps use.
Description
•