linux-uconsole/fs/cachefiles
David Howells 58e4a597dc CacheFiles: Fix error handling in cachefiles_determine_cache_security()
commit 7ac512aa82 upstream.

cachefiles_determine_cache_security() is expected to return with a
security override in place.  However, if set_create_files_as() fails, we
fail to do this.  In this case, we should just reinstate the security
override that was set by the caller.

Furthermore, if set_create_files_as() fails, we should dispose of the
new credentials we were in the process of creating.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-26 14:29:20 -07:00
..
bind.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
daemon.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
interface.c CacheFiles: Don't log lookup/create failing with ENOBUFS 2009-11-19 18:12:08 +00:00
internal.h CacheFiles: Fixup renamed filenames in comments in internal.h 2009-05-27 10:20:13 -07:00
Kconfig CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
key.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
main.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
Makefile CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
namei.c CacheFiles: Catch an overly long wait for an old active object 2009-11-19 18:12:05 +00:00
proc.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
rdwr.c CacheFiles: Update IMA counters when using dentry_open 2009-12-01 07:35:11 -08:00
security.c CacheFiles: Fix error handling in cachefiles_determine_cache_security() 2010-05-26 14:29:20 -07:00
xattr.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00