file.c (b6c1d8fcbadeb9bb4c3dbca57a007629d0483544) | file.c (25bd8174036036f427b039e4857feac6c6912a37) |
---|---|
1/** 2 * eCryptfs: Linux filesystem encryption layer 3 * 4 * Copyright (C) 1997-2004 Erez Zadok 5 * Copyright (C) 2001-2004 Stony Brook University 6 * Copyright (C) 2004-2007 International Business Machines Corp. 7 * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com> 8 * Michael C. Thompson <mcthomps@us.ibm.com> --- 195 unchanged lines hidden (view full) --- 204 || !(crypt_stat->flags & ECRYPTFS_KEY_VALID)) { 205 rc = ecryptfs_read_metadata(ecryptfs_dentry); 206 if (rc) { 207 ecryptfs_printk(KERN_DEBUG, 208 "Valid headers not found\n"); 209 if (!(mount_crypt_stat->flags 210 & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED)) { 211 rc = -EIO; | 1/** 2 * eCryptfs: Linux filesystem encryption layer 3 * 4 * Copyright (C) 1997-2004 Erez Zadok 5 * Copyright (C) 2001-2004 Stony Brook University 6 * Copyright (C) 2004-2007 International Business Machines Corp. 7 * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com> 8 * Michael C. Thompson <mcthomps@us.ibm.com> --- 195 unchanged lines hidden (view full) --- 204 || !(crypt_stat->flags & ECRYPTFS_KEY_VALID)) { 205 rc = ecryptfs_read_metadata(ecryptfs_dentry); 206 if (rc) { 207 ecryptfs_printk(KERN_DEBUG, 208 "Valid headers not found\n"); 209 if (!(mount_crypt_stat->flags 210 & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED)) { 211 rc = -EIO; |
212 printk(KERN_WARNING "Attempt to read file that " | 212 printk(KERN_WARNING "Either the lower file " |
213 "is not in a valid eCryptfs format, " | 213 "is not in a valid eCryptfs format, " |
214 "and plaintext passthrough mode is not " | 214 "or the key could not be retrieved. " 215 "Plaintext passthrough mode is not " |
215 "enabled; returning -EIO\n"); 216 mutex_unlock(&crypt_stat->cs_mutex); 217 goto out_free; 218 } 219 rc = 0; 220 crypt_stat->flags &= ~(ECRYPTFS_ENCRYPTED); 221 mutex_unlock(&crypt_stat->cs_mutex); 222 goto out; --- 108 unchanged lines hidden --- | 216 "enabled; returning -EIO\n"); 217 mutex_unlock(&crypt_stat->cs_mutex); 218 goto out_free; 219 } 220 rc = 0; 221 crypt_stat->flags &= ~(ECRYPTFS_ENCRYPTED); 222 mutex_unlock(&crypt_stat->cs_mutex); 223 goto out; --- 108 unchanged lines hidden --- |