qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] PATCH: Close file descriptors when execing network tap setu


From: Daniel P. Berrange
Subject: [Qemu-devel] PATCH: Close file descriptors when execing network tap setup script
Date: Tue, 6 Mar 2007 16:28:43 +0000
User-agent: Mutt/1.4.1i

In the VM initialization, the files corresponding to the virtual disks are
opened before the networking is setup. So when the time comes to run the
network tap setup script the QEMU process has a bunch of open file handles
which are leaked to the networking script. Some of the commands run by the
networking script may well be executing under a confined SELinux domain so
this leak of file handles triggers security audit alerts / denials.

The attached patch explicitly closes all file handles prior to execing the 
network script, except for STDIN/OUT/ERR and the TAP file handle itself.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

Attachment: qemu-close-fds.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]