diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-04-22 11:31:30 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-04-25 15:23:59 +0200 |
commit | 3b1253880b7a9e6db54b943b2d40bcf2202f58ab (patch) | |
tree | 5301be7b4d4310faa8db5a0d027b81421e36570e /fs/fcntl.c | |
parent | [PATCH] sanitize handling of shared descriptor tables in failing execve() (diff) | |
download | linux-3b1253880b7a9e6db54b943b2d40bcf2202f58ab.tar.xz linux-3b1253880b7a9e6db54b943b2d40bcf2202f58ab.zip |
[PATCH] sanitize unshare_files/reset_files_struct
* let unshare_files() give caller the displaced files_struct
* don't bother with grabbing reference only to drop it in the
caller if it hadn't been shared in the first place
* in that form unshare_files() is trivially implemented via
unshare_fd(), so we eliminate the duplicate logics in fork.c
* reset_files_struct() is not just only called for current;
it will break the system if somebody ever calls it for anything
else (we can't modify ->files of somebody else). Lose the
task_struct * argument.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions