Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 151040 Details for
Bug 234166
QEMU file descriptor leak causes SELinux errors when starting HVM domain
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Close file handles before running network scripts
xen-qemu-close-fds.patch (text/plain), 1.38 KB, created by
Daniel Berrangé
on 2007-03-27 15:32:18 UTC
(
hide
)
Description:
Close file handles before running network scripts
Filename:
MIME Type:
Creator:
Daniel Berrangé
Created:
2007-03-27 15:32:18 UTC
Size:
1.38 KB
patch
obsolete
>diff -r 3ac19fda0bc2 tools/ioemu/vl.c >--- a/tools/ioemu/vl.c Fri Mar 02 12:11:52 2007 +0000 >+++ b/tools/ioemu/vl.c Tue Mar 06 11:21:52 2007 -0500 >@@ -3250,6 +3250,14 @@ static int net_tap_init(VLANState *vlan, > pid = fork(); > if (pid >= 0) { > if (pid == 0) { >+ int open_max = sysconf (_SC_OPEN_MAX), i; >+ for (i = 0; i < open_max; i++) >+ if (i != STDIN_FILENO && >+ i != STDOUT_FILENO && >+ i != STDERR_FILENO && >+ i != fd) >+ close(i); >+ > parg = args; > *parg++ = (char *)setup_script; > *parg++ = ifname; >diff -r 3ac19fda0bc2 tools/ioemu/vnc.c >--- a/tools/ioemu/vnc.c Fri Mar 02 12:11:52 2007 +0000 >+++ b/tools/ioemu/vnc.c Tue Mar 06 11:21:52 2007 -0500 >@@ -1445,7 +1445,7 @@ int vnc_display_init(DisplayState *ds, i > > int vnc_start_viewer(int port) > { >- int pid; >+ int pid, i, open_max; > char s[16]; > > sprintf(s, ":%d", port); >@@ -1456,6 +1456,12 @@ int vnc_start_viewer(int port) > exit(1); > > case 0: /* child */ >+ open_max = sysconf (_SC_OPEN_MAX); >+ for (i = 0; i < open_max; i++) >+ if (i != STDIN_FILENO && >+ i != STDOUT_FILENO && >+ i != STDERR_FILENO) >+ close(i); > execlp("vncviewer", "vncviewer", s, NULL); > fprintf(stderr, "vncviewer execlp failed\n"); > exit(1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234166
: 151040