Closed Bug 471756 Opened 16 years ago Closed 16 years ago

NSS creates sql db files with loose filemodes

Categories

(NSS :: Libraries, defect)

3.12.2
All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 463452

People

(Reporter: wolfiR, Unassigned)

Details

That might be a design decision to let the calling application decide about the umask but anyway to be sure:

NSS 3.12.2 creates shared NSS db (cert9.db, key4.db, pkcs11.txt) with the following file permissions:

open("/home/wolfgang/.local/var/pki/nssdb/pkcs11.txt", O_RDWR|O_CREAT|O_APPEND, 0666) = 37
open("/home/wolfgang/.local/var/pki/nssdb/cert9.db", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 37
open("/home/wolfgang/.local/var/pki/nssdb/key4.db", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 38

(when created via NSS_Initialize() if that's important.)

Just to be sure that's intended. My Firefox 3.x profile has the dbm db files as mode 0600.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.