aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2006-05-20 22:00:01 +0000
committerLinus Torvalds <[email protected]>2006-05-21 19:59:17 +0000
commitdf88912a2165f56a7402db80126cf8ea075221fe (patch)
tree3d2246a0507cbaa56a501485d69ee936f367bc37 /security/selinux/hooks.c
parent[PATCH] HID read busywait fix (diff)
downloadkernel-df88912a2165f56a7402db80126cf8ea075221fe.tar.gz
kernel-df88912a2165f56a7402db80126cf8ea075221fe.zip
[PATCH] binfmt_flat: don't check for EMFILE
Bernd Schmidt points out that binfmt_flat is now leaving the exec file open while the application runs. This offsets all the application's fd numbers. We should have closed the file within exec(), not at exit()-time. But there doesn't seem to be a lot of point in doing all this just to avoid going over RLIMIT_NOFILE by one fd for a few microseconds. So take the EMFILE checking out again. This will cause binfmt_flat to again fail LTP's exec-should-return-EMFILE-when-fdtable-is-full test. That test appears to be wrong anyway - Open Group specs say nothing about exec() returning EMFILE. Cc: Bernd Schmidt <[email protected]> Cc: Greg Ungerer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions