Description of problem: From: Serge Hallyn <serue.com> While Linux doesn't honor setuid on scripts. However, it mistakenly behaves differently for file capabilities. This patch fixes that behavior by making sure that get_file_caps() begins with empty bprm->caps_*. That way when a script is loaded, its bprm->caps_* may be filled when binfmt_misc calls prepare_binprm(), but they will be cleared again when binfmt_elf calls prepare_binprm() next to read the interpreter's file capabilities.
Proposed upstream patch: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3318a386e4ca68c76e0294363d29bdc46fcad670
This issue has been addressed in following products: Red Hat Enterprise MRG v1 for Red Hat Enterprise Linux (version 5) Via RHSA-2009:0053 available at https://rhn.redhat.com/errata/RHSA-2009-0053.html