aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptctl.c
diff options
context:
space:
mode:
authorSerge Hallyn <[email protected]>2008-10-30 16:52:23 +0000
committerLinus Torvalds <[email protected]>2008-11-01 16:49:45 +0000
commit3318a386e4ca68c76e0294363d29bdc46fcad670 (patch)
treeda0da58f10bcb7dd7a885f6032b46d1025af208b /drivers/message/fusion/mptctl.c
parentMerge branch 'for-2.6.28' of git://linux-nfs.org/~bfields/linux (diff)
downloadkernel-3318a386e4ca68c76e0294363d29bdc46fcad670.tar.gz
kernel-3318a386e4ca68c76e0294363d29bdc46fcad670.zip
file caps: always start with clear bprm->caps_*
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. Signed-off-by: Serge Hallyn <[email protected]> Acked-by: David Howells <[email protected]> Acked-by: Andrew G. Morgan <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
0 files changed, 0 insertions, 0 deletions