Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/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
  • Loading branch information
Linus Torvalds committed May 27, 2009
2 parents cd86a53 + b1338d1 commit 8784cdd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions security/tomoyo/tomoyo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8784cdd

Please sign in to comment.