1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: fix race condition when checking source during mount
Author: Marc Deslauriers <marc.deslauriers@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/732628
Index: ecryptfs-utils-87/src/utils/mount.ecryptfs_private.c
===================================================================
--- ecryptfs-utils-87.orig/src/utils/mount.ecryptfs_private.c 2011-07-27 10:54:40.489472377 -0400
+++ ecryptfs-utils-87/src/utils/mount.ecryptfs_private.c 2011-07-27 10:54:54.499472375 -0400
@@ -563,7 +563,7 @@
/* Build mount options */
if (
- (asprintf(&opt, "ecryptfs_cipher=%s,ecryptfs_key_bytes=%d,ecryptfs_unlink_sigs%s%s%s%s",
+ (asprintf(&opt, "ecryptfs_check_dev_ruid,ecryptfs_cipher=%s,ecryptfs_key_bytes=%d,ecryptfs_unlink_sigs%s%s%s%s",
KEY_CIPHER,
KEY_BYTES,
sig ? ",ecryptfs_sig=" : "",
|