New package: tpm-tools-1.3.8
This commit is contained in:
parent
5a2e78f5a0
commit
427ae3416b
|
@ -0,0 +1,5 @@
|
|||
case "$ACTION" in
|
||||
purge)
|
||||
[ -d var/lib/tpm ] && rm -rf var/lib/tpm
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -p daemon.info -t tcsd
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
[ -d /var/lib/tpm ] || install -m 0700 -o tss -g tss -d /var/lib/tpm
|
||||
exec chpst -u tss:tss tcsd -f
|
|
@ -0,0 +1,47 @@
|
|||
--- src/tspi/ps/tspps.c.orig 2015-11-18 12:45:47.585113542 +0100
|
||||
+++ src/tspi/ps/tspps.c 2015-11-18 12:46:37.605577956 +0100
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
static int user_ps_fd = -1;
|
||||
static MUTEX_DECLARE_INIT(user_ps_lock);
|
||||
-#if (defined (__FreeBSD__) || defined (__OpenBSD__))
|
||||
+#if !defined(__GLIBC__)
|
||||
static MUTEX_DECLARE_INIT(user_ps_path);
|
||||
#endif
|
||||
static struct flock fl;
|
||||
@@ -60,7 +60,7 @@
|
||||
TSS_RESULT result;
|
||||
char *file_name = NULL, *home_dir = NULL;
|
||||
struct passwd *pwp;
|
||||
-#if (defined (__linux) || defined (linux) || defined(__GLIBC__))
|
||||
+#if defined(__GLIBC__)
|
||||
struct passwd pw;
|
||||
#endif
|
||||
struct stat stat_buf;
|
||||
@@ -72,7 +72,7 @@
|
||||
*file = strdup(file_name);
|
||||
return (*file) ? TSS_SUCCESS : TSPERR(TSS_E_OUTOFMEMORY);
|
||||
}
|
||||
-#if (defined (__FreeBSD__) || defined (__OpenBSD__))
|
||||
+#if !defined(__GLIBC__)
|
||||
MUTEX_LOCK(user_ps_path);
|
||||
#endif
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
#else
|
||||
setpwent();
|
||||
while (1) {
|
||||
-#if (defined (__linux) || defined (linux) || defined(__GLIBC__))
|
||||
+#if defined(__GLIBC__)
|
||||
rc = getpwent_r(&pw, buf, PASSWD_BUFSIZE, &pwp);
|
||||
if (rc) {
|
||||
LogDebugFn("USER PS: Error getting path to home directory: getpwent_r: %s",
|
||||
@@ -99,7 +99,7 @@
|
||||
return TSPERR(TSS_E_INTERNAL_ERROR);
|
||||
}
|
||||
|
||||
-#elif (defined (__FreeBSD__) || defined (__OpenBSD__))
|
||||
+#elif !defined(__GLIBC__)
|
||||
if ((pwp = getpwent()) == NULL) {
|
||||
LogDebugFn("USER PS: Error getting path to home directory: getpwent: %s",
|
||||
strerror(rc));
|
|
@ -0,0 +1,14 @@
|
|||
--- src/tspi/tsp_tcsi_param.c.orig 2015-11-18 10:44:20.263987906 +0100
|
||||
+++ src/tspi/tsp_tcsi_param.c 2015-11-18 10:45:20.524547393 +0100
|
||||
@@ -11,7 +11,11 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
+#if defined(__GLIBC__)
|
||||
#include <bits/local_lim.h>
|
||||
+#else
|
||||
+#define HOST_NAME_MAX 64
|
||||
+#endif
|
||||
#include "trousers/tss.h"
|
||||
#include "trousers/trousers.h"
|
||||
#include "trousers_types.h"
|
Loading…
Reference in New Issue