]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - security/tomoyo/tomoyo.c
tomoyo: add missing call to cap_bprm_set_creds
[mv-sheeva.git] / security / tomoyo / tomoyo.c
index 5b481912752a91e10199cef23f664d76454ec751..e42be5c4f055b5ebb5258fdb3e6d041f9b3d2f91 100644 (file)
@@ -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.