aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2010-12-19 11:43:56 +0800
committernork <nork@FreeBSD.org>2010-12-19 11:43:56 +0800
commitfcdd18f997fa103d6b82dfda4e1102b3a6f382ce (patch)
tree46bae3a1990211fe37df8e9ac49a41545e551b54
parent19c0809f5124f069fd8d5e00f0cbcf84a1d6a7a6 (diff)
downloadfreebsd-ports-graphics-fcdd18f997fa103d6b82dfda4e1102b3a6f382ce.tar.gz
freebsd-ports-graphics-fcdd18f997fa103d6b82dfda4e1102b3a6f382ce.tar.zst
freebsd-ports-graphics-fcdd18f997fa103d6b82dfda4e1102b3a6f382ce.zip
o Add a important hack to tpmtoken_init(1).
o Bump PORTREVISION, accordingly.
-rw-r--r--security/opencryptoki/Makefile2
-rw-r--r--security/opencryptoki/files/patch-usr-sbin-pkcsslotd-mutex.c19
2 files changed, 18 insertions, 3 deletions
diff --git a/security/opencryptoki/Makefile b/security/opencryptoki/Makefile
index 9ecb2f5b2b0..b5378573568 100644
--- a/security/opencryptoki/Makefile
+++ b/security/opencryptoki/Makefile
@@ -7,7 +7,7 @@
PORTNAME= opencryptoki
PORTVERSION= 2.3.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
diff --git a/security/opencryptoki/files/patch-usr-sbin-pkcsslotd-mutex.c b/security/opencryptoki/files/patch-usr-sbin-pkcsslotd-mutex.c
index 4b8c83064db..412566aa942 100644
--- a/security/opencryptoki/files/patch-usr-sbin-pkcsslotd-mutex.c
+++ b/security/opencryptoki/files/patch-usr-sbin-pkcsslotd-mutex.c
@@ -1,5 +1,5 @@
--- usr/sbin/pkcsslotd/mutex.c.orig 2010-07-29 21:28:41.000000000 +0900
-+++ usr/sbin/pkcsslotd/mutex.c 2010-10-20 01:19:28.613984045 +0900
++++ usr/sbin/pkcsslotd/mutex.c 2010-12-19 12:13:34.837579374 +0900
@@ -293,6 +293,26 @@
#include "pkcsslotd.h"
@@ -27,11 +27,26 @@
#if SYSVSEM
#error "Caveat Emptor... this does not work"
-@@ -315,7 +335,6 @@
+@@ -315,7 +335,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <sys/file.h>
++#include <grp.h>
static int xplfd=-1;
#endif
+@@ -349,6 +369,13 @@
+ #elif (SPINXPL)
+
+ xplfd = open (XPL_FILE,O_CREAT|O_RDWR,S_IRWXU|S_IRWXG|S_IRWXO);
++ {
++ struct group *grp;
++ fchmod(xplfd,S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH);
++ grp = getgrnam(PKCS11GROUP);
++ if (grp)
++ fchown(xplfd,getuid(),grp->gr_gid);
++ }
+
+ #elif (SYSVSEM)
+ #error "Caveat Emptor... this does not work"