summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-pkcs11-cca_stdll-loadsave.c
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2010-11-07 12:07:17 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2010-11-07 12:07:17 +0000
commitc38e52a3c0b061b44ebb589d362563613f2edab8 (patch)
treee366bdd7e41998dca16600f03e415d6457bdbd42 /security/opencryptoki/files/patch-usr-lib-pkcs11-cca_stdll-loadsave.c
parentAdd trousers 0.3.6, is a CPL (Common Public License) licensed Trusted (diff)
Add opencryptoki 2.3.2, is an open PKCS#11 implementation library.
Obtained from: http://bsssd.sourceforge.net/
Notes
Notes: svn path=/head/; revision=264183
Diffstat (limited to 'security/opencryptoki/files/patch-usr-lib-pkcs11-cca_stdll-loadsave.c')
-rw-r--r--security/opencryptoki/files/patch-usr-lib-pkcs11-cca_stdll-loadsave.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-pkcs11-cca_stdll-loadsave.c b/security/opencryptoki/files/patch-usr-lib-pkcs11-cca_stdll-loadsave.c
new file mode 100644
index 000000000000..fd6dc631209f
--- /dev/null
+++ b/security/opencryptoki/files/patch-usr-lib-pkcs11-cca_stdll-loadsave.c
@@ -0,0 +1,23 @@
+--- usr/lib/pkcs11/cca_stdll/loadsave.c.orig 2010-07-29 21:28:41.000000000 +0900
++++ usr/lib/pkcs11/cca_stdll/loadsave.c 2010-10-20 01:49:50.769984323 +0900
+@@ -22,11 +22,9 @@
+ #include <string.h>
+ #include <strings.h>
+ #include <unistd.h>
+-#include <alloca.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/ipc.h>
+-#include <sys/file.h>
+ #include <errno.h>
+
+ #include <pwd.h>
+@@ -51,7 +49,7 @@
+ // Set absolute permissions or rw-rw-r--
+ fchmod(file,S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH);
+
+- grp = getgrnam("pkcs11"); // Obtain the group id
++ grp = getgrnam(PKCS11GROUP); // Obtain the group id
+ if (grp){
+ fchown(file,getuid(),grp->gr_gid); // set ownership to root, and pkcs11 group
+ }