]> git.baikalelectronics.ru Git - kernel.git/commit
tomoyo: add missing call to cap_bprm_set_creds
authorHerton Ronaldo Krzesinski <herton@mandriva.com.br>
Tue, 26 May 2009 03:15:53 +0000 (12:15 +0900)
committerJames Morris <jmorris@namei.org>
Tue, 26 May 2009 23:46:48 +0000 (09:46 +1000)
commit34b38424278ed6e1a0e56b48adc8954052733316
treebdfcdf710df69eed78e7c4a2b86383ec3db9a230
parente393e531396cbce64246a39451068e24bcb58fbc
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