From: Nathan Williams <[email protected]>

---
 usr/sbin/pkcs_slot/pkcs_slot.in |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/usr/sbin/pkcs_slot/pkcs_slot.in b/usr/sbin/pkcs_slot/pkcs_slot.in
index 559f0f4..e634b55 100644
--- a/usr/sbin/pkcs_slot/pkcs_slot.in
+++ b/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|$CCA_INIT"
 >>$CFGFILE
 fi
 
-...@chmod@ -R g+wrX @localstatedir@/lib/opencryptoki
 
 
 
-- 
1.7.4.rc1


------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to