mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
1d2ddcfb19
When UML opens a TUN/TAP device, the file descriptor could be copied into later, long-lived threads, holding the device open even after the interface is taken down, preventing it from being brought up again. This patch makes these descriptors close-on-exec so that they disappear from helper processes, and adds CLONE_FILES to a UML helper thread so that the descriptors are closed in the thread when they are closed elsewhere in UML. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> |
||
---|---|---|
.. | ||
drivers | ||
include | ||
skas | ||
sys-i386 | ||
sys-x86_64 | ||
aio.c | ||
elf_aux.c | ||
file.c | ||
helper.c | ||
main.c | ||
Makefile | ||
mem.c | ||
process.c | ||
signal.c | ||
start_up.c | ||
time.c | ||
trap.c | ||
tt.c | ||
tty.c | ||
uaccess.c | ||
umid.c | ||
user_syms.c | ||
util.c |