Skip to content

Commit

Permalink
Bug 668130: Remove Solaris auditing code in fipstokn.c, which breaks
Browse files Browse the repository at this point in the history
Solaris 11. r=wtc.
  • Loading branch information
Julien Pierre committed Mar 13, 2014
1 parent 2365b56 commit cf6e94b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 49 deletions.
4 changes: 0 additions & 4 deletions cmd/platlibs.mk
Expand Up @@ -146,10 +146,6 @@ EXTRA_SHARED_LIBS += \
$(NULL)
endif

ifeq ($(OS_TARGET), SunOS)
OS_LIBS += -lbsm
endif

else # USE_STATIC_LIBS
# can't do this in manifest.mn because OS_ARCH isn't defined there.
ifeq ($(OS_ARCH), WINNT)
Expand Down
4 changes: 0 additions & 4 deletions lib/softoken/config.mk
Expand Up @@ -61,7 +61,3 @@ endif
ifeq ($(OS_TARGET),AIX)
OS_LIBS += -lpthread
endif

ifeq ($(OS_TARGET),SunOS)
OS_LIBS += -lbsm
endif
33 changes: 0 additions & 33 deletions lib/softoken/fipstokn.c
Expand Up @@ -33,11 +33,6 @@
#include <unistd.h>
#endif

#ifdef SOLARIS
#include <bsm/libbsm.h>
#define AUE_FIPS_AUDIT 34444
#endif

#ifdef LINUX
#include <pthread.h>
#include <dlfcn.h>
Expand Down Expand Up @@ -407,34 +402,6 @@ sftk_LogAuditMessage(NSSAuditSeverity severity, NSSAuditType auditType,
PR_smprintf_free(message);
}
#endif /* LINUX */
#ifdef SOLARIS
{
int rd;
char *message = PR_smprintf("NSS " SOFTOKEN_LIB_NAME ": %s", msg);

if (!message) {
return;
}

/* open the record descriptor */
if ((rd = au_open()) == -1) {
PR_smprintf_free(message);
return;
}

/* write the audit tokens to the audit record */
if (au_write(rd, au_to_text(message))) {
(void)au_close(rd, AU_TO_NO_WRITE, AUE_FIPS_AUDIT);
PR_smprintf_free(message);
return;
}

/* close the record and send it to the audit trail */
(void)au_close(rd, AU_TO_WRITE, AUE_FIPS_AUDIT);

PR_smprintf_free(message);
}
#endif /* SOLARIS */
#else
/* do nothing */
#endif
Expand Down
4 changes: 0 additions & 4 deletions lib/softoken/legacydb/config.mk
Expand Up @@ -55,7 +55,3 @@ EXTRA_SHARED_LIBS += \
-lnspr4 \
$(NULL)
endif

ifeq ($(OS_TARGET),SunOS)
OS_LIBS += -lbsm
endif
4 changes: 0 additions & 4 deletions lib/sqlite/config.mk
Expand Up @@ -22,10 +22,6 @@ OPTIMIZER=
endif
endif

ifeq ($(OS_TARGET),SunOS)
OS_LIBS += -lbsm
endif

ifeq ($(OS_TARGET),Darwin)
# These version numbers come from the -version-info 8:6:8 libtool option in
# sqlite upstream's Makefile.in. (Given -version-info current:revision:age,
Expand Down

0 comments on commit cf6e94b

Please sign in to comment.