From 4ca3961684b4b5aef954f9761e9b861ecf46eff0 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 25 Aug 2012 01:19:47 +0200 Subject: [PATCH] vm/filecopy: close unused fds in parent process --- qubes_rpc/qfile-unpacker.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes_rpc/qfile-unpacker.c b/qubes_rpc/qfile-unpacker.c index dd0a510..0588719 100644 --- a/qubes_rpc/qfile-unpacker.c +++ b/qubes_rpc/qfile-unpacker.c @@ -81,6 +81,8 @@ int main(int argc, char ** argv) default:; } + close(0); + close(1); setuid(uid); close(pipefds[1]); wait_for_child(pipefds[0]);