diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-05-27 03:03:40 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-05-27 03:03:40 +0200 |
commit | 8784cdd9af0e3b6a8a42b538db51d7f1951be956 (patch) | |
tree | 5161ff08d7d8f7d3baeb2d72f98fc54e8f58654e | |
parent | Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kern... (diff) | |
parent | tomoyo: add missing call to cap_bprm_set_creds (diff) | |
download | linux-8784cdd9af0e3b6a8a42b538db51d7f1951be956.tar.xz linux-8784cdd9af0e3b6a8a42b538db51d7f1951be956.zip |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
tomoyo: add missing call to cap_bprm_set_creds
-rw-r--r-- | security/tomoyo/tomoyo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c index 5b481912752a..e42be5c4f055 100644 --- a/security/tomoyo/tomoyo.c +++ b/security/tomoyo/tomoyo.c @@ -27,6 +27,12 @@ static int tomoyo_cred_prepare(struct cred *new, const struct cred *old, static int tomoyo_bprm_set_creds(struct linux_binprm *bprm) { + int rc; + + rc = cap_bprm_set_creds(bprm); + if (rc) + return rc; + /* * Do only if this function is called for the first time of an execve * operation. |