File: CVE-2011-1833.patch

package info (click to toggle)
ecryptfs-utils 83-4%2Bsqueeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 2,732 kB
  • ctags: 1,402
  • sloc: ansic: 15,975; sh: 11,096; makefile: 250; python: 41
file content (17 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (2)
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=" : "",