summaryrefslogtreecommitdiff
blob: c8a22e6bb4bf1304abbd942d2393badb8e893be2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Index: opencryptoki-2.3.2/usr/sbin/pkcs_slot/pkcs_slot.in
===================================================================
--- opencryptoki-2.3.2.orig/usr/sbin/pkcs_slot/pkcs_slot.in
+++ opencryptoki-2.3.2/usr/sbin/pkcs_slot/pkcs_slot.in
@@ -356,12 +356,14 @@ fi
 DEVICE=$1
 DEPTH=$2
 
+# Ensure that any directories created are group-accessible
+umask 002
+
 # Check for the existance of the directories 
 if [ ! -d @localstatedir@/lib/opencryptoki ]
 then
 	@MKDIR_P@ @localstatedir@/lib/opencryptoki
         @CHGRP@ pkcs11 @localstatedir@/lib/opencryptoki
-	@CHMOD@ -R g+rwX @localstatedir@/lib/opencryptoki
 fi
 
 
@@ -502,7 +504,6 @@ then
 echo "TRUE|0|$SLOT_DESCRIPTION|$MANUFACTURER|TRUE|FALSE|TRUE|0|0|1|1|NONE|$CCA_DLL_FN|$CCA_INIT" >>$CFGFILE
 fi
 
-@CHMOD@ -R g+wrX @localstatedir@/lib/opencryptoki