https://github.com/torvalds/linux
Revision 7ac512aa8237c43331ffaf77a4fd8b8d684819ba authored by David Howells on 12 May 2010, 14:34:03 UTC, committed by Linus Torvalds on 13 May 2010, 01:23:58 UTC
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>
1 parent 91af708
History
Tip revision: 7ac512aa8237c43331ffaf77a4fd8b8d684819ba authored by David Howells on 12 May 2010, 14:34:03 UTC
CacheFiles: Fix error handling in cachefiles_determine_cache_security()
Tip revision: 7ac512a
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 930 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 166.4 KB
Makefile -rw-r--r-- 51.9 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top