Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190800
b: refs/heads/master
c: 7ac512a
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed May 13, 2010
1 parent 8be4469 commit 00802bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91af70814105f4c05e6e11b51c3269907b71794b
refs/heads/master: 7ac512aa8237c43331ffaf77a4fd8b8d684819ba
4 changes: 4 additions & 0 deletions trunk/fs/cachefiles/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ static int cachefiles_check_cache_dir(struct cachefiles_cache *cache,
/*
* check the security details of the on-disk cache
* - must be called with security override in force
* - must return with a security override in force - even in the case of an
* error
*/
int cachefiles_determine_cache_security(struct cachefiles_cache *cache,
struct dentry *root,
Expand All @@ -99,6 +101,8 @@ int cachefiles_determine_cache_security(struct cachefiles_cache *cache,
* which create files */
ret = set_create_files_as(new, root->d_inode);
if (ret < 0) {
abort_creds(new);
cachefiles_begin_secure(cache, _saved_cred);
_leave(" = %d [cfa]", ret);
return ret;
}
Expand Down

0 comments on commit 00802bd

Please sign in to comment.