Closed Bug 668130 Opened 14 years ago Closed 12 years ago

Remove auditing code in fipstokn.c which breaks Solaris 11

Categories

(NSS :: Libraries, defect, P2)

3.12.9
All
Solaris
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ginnchen+exoracle, Assigned: julien.pierre)

Details

Attachments

(1 file, 1 obsolete file)

"fipstokn.c", line 459: prototype mismatch: 3 args passed, 4 expected "fipstokn.c", line 465: prototype mismatch: 3 args passed, 4 expected The interface of au_close() is changed in snv_168. - int au_close(int d, int keep, short event); + int au_close(int d, int keep, au_event_t event, au_emod_t e_mod); + The e_mod variable indicates whether the audit record is + a success (0), or fail(PAD_FAILURE) record.
Indeed. It looks like the prototype for au_close has changed in s11 to take a 4th argument.
Attached patch Remove Solaris auditing code (obsolete) — Splinter Review
This is not just a build issue, but also presents a runtime binary compatibility issue. I have consulted with the Solaris team. Since Oracle isn't doing FIPS validations for NSS anymore on Solaris, their recommendation is to remove the auditing code.
Assignee: nobody → julien.pierre
Status: NEW → ASSIGNED
Attachment #8390234 - Flags: review?(wtc)
Summary: fipstokn.c failed to compile on Solaris 11 → Remove auditing code in fipstokn.c which breaks Solaris 11
Priority: -- → P2
Target Milestone: --- → 3.16
That code was added in this changeset: https://hg.mozilla.org/projects/nss/rev/b4fdd7dfac22 I also removed the accompanying makefile changes. The change to lib/softoken/config.mk has apparently been replicated to the two new database directories. So I removed them all. Please test the new code. Thanks.
Attachment #8390234 - Attachment is obsolete: true
Attachment #8390234 - Flags: review?(wtc)
Attachment #8390522 - Flags: review?(julien.pierre)
Attachment #8390522 - Flags: checked-in+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment on attachment 8390522 [details] [diff] [review] Remove Solaris auditing code, v2 Review of attachment 8390522 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for catching that. It builds fine.
Attachment #8390522 - Flags: review?(julien.pierre) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: