diff options
author | Serge Hallyn <serue@us.ibm.com> | 2008-10-30 19:52:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-11-10 22:17:55 +0300 |
commit | d98555a502f4a5d714b99b697942df256b0633ad (patch) | |
tree | 7d3ddaf103dfe4c077deb30da5dbb6a3a0e8dbf3 /sound | |
parent | f53dd684abef20b9c1133548bfb56d91da537e3e (diff) | |
download | linux-d98555a502f4a5d714b99b697942df256b0633ad.tar.xz |
file caps: always start with clear bprm->caps_*
commit 3318a386e4ca68c76e0294363d29bdc46fcad670 upstream
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 <serue@us.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
Acked-by: Andrew G. Morgan <morgan@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions