tomoyo: add missing call to cap_bprm_set_creds
commitb1338d199dda6681d9af0297928af0a7eb9cba7b
authorHerton Ronaldo Krzesinski <herton@mandriva.com.br>
Tue, 26 May 2009 03:15:53 +0000 (26 12:15 +0900)
committerJames Morris <jmorris@namei.org>
Tue, 26 May 2009 23:46:48 +0000 (27 09:46 +1000)
treebdfcdf710df69eed78e7c4a2b86383ec3db9a230
parente2a1b9ee2335c35e0e34c88a024481b194b3c9cc
tomoyo: add missing call to cap_bprm_set_creds

cap_bprm_set_creds() has to be called from security_bprm_set_creds().
TOMOYO forgot to call cap_bprm_set_creds() from tomoyo_bprm_set_creds()
and suid executables were not being working.

Make sure we call cap_bprm_set_creds() with TOMOYO, to set credentials
properly inside tomoyo_bprm_set_creds().

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/tomoyo.c