Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2128)

Unified Diff: dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch

Issue 3515012: opencryptoki: patch out the recursive chmod -R in pkcs_slot, and bump ebuild. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git
Patch Set: Rebase Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dev-libs/opencryptoki/opencryptoki-2.2.8.ebuild » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch
diff --git a/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch b/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch
new file mode 100644
index 0000000000000000000000000000000000000000..b95534aa00a5aff33ea36b50d04cd2225b017021
--- /dev/null
+++ b/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch
@@ -0,0 +1,21 @@
+--- opencryptoki-2.2.8/usr/sbin/pkcs_slot/pkcs_slot.in.orig 2010-10-05 17:14:44.000000000 -0400
++++ opencryptoki-2.2.8/usr/sbin/pkcs_slot/pkcs_slot.in 2010-10-05 17:13:24.000000000 -0400
+@@ -351,6 +351,9 @@
+ DEVICE=$1
+ DEPTH=$2
+
++# Ensure that any directories created are group-accessible
++umask 002
++
+ # Check for the existance of the directories
+ if [ ! -d @DB_PATH@ ]
+ then
+@@ -481,8 +484,4 @@
+ echo "TRUE|0|$SLOT_DESCRIPTION|$MANUFACTURER|TRUE|FALSE|TRUE|0|0|1|1|NONE|$TPM_DLL_FN|$TPM_INIT" >>$CFGFILE
+ fi
+
+-cd @DB_PATH@
+-chmod -R g+wrx .
+-
+-
+ exit $OK
« no previous file with comments | « no previous file | dev-libs/opencryptoki/opencryptoki-2.2.8.ebuild » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698