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 303484 Details for
Bug 442333
AVC denials on start of openswan host-to-host tunnel
[?]
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]
patch to close remaining sockets that we accept
openswan2.patch (text/plain), 1.90 KB, created by
Neil Horman
on 2008-04-23 11:59:05 UTC
(
hide
)
Description:
patch to close remaining sockets that we accept
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2008-04-23 11:59:05 UTC
Size:
1.90 KB
patch
obsolete
>diff -up openswan-2.6.12/testing/utils/uml_netjig/port.c.orig openswan-2.6.12/testing/utils/uml_netjig/port.c >--- openswan-2.6.12/testing/utils/uml_netjig/port.c.orig 2008-04-23 07:52:15.000000000 -0400 >+++ openswan-2.6.12/testing/utils/uml_netjig/port.c 2008-04-23 07:53:50.000000000 -0400 >@@ -551,6 +551,7 @@ void accept_connection(struct netjig_sta > struct sockaddr addr; > struct port *new_port; > int len, new; >+ unsigned long fcntl_arg; > > len = sizeof(addr); > new = accept(nh->ctl_listen_fd, &addr, &len); >@@ -559,6 +560,13 @@ void accept_connection(struct netjig_sta > return; > } > >+ /* >+ * set CLOEXEC it to suppress selenux avc denials on exec >+ */ >+ fcntl_arg = fcntl(new, F_GETFD); >+ fcntl_arg |= F_CLOEXEC; >+ fcntl(new, F_SETFD, fcntl_arg); >+ > #if 0 > if(fcntl(new, F_SETFL, O_NONBLOCK) < 0){ > perror("fcntl - setting O_NONBLOCK"); >diff -up openswan-2.6.12/programs/pluto/rcv_whack.c.orig openswan-2.6.12/programs/pluto/rcv_whack.c >diff -up openswan-2.6.12/programs/pluto/rcv_info.c.orig openswan-2.6.12/programs/pluto/rcv_info.c >--- openswan-2.6.12/programs/pluto/rcv_info.c.orig 2008-04-23 07:47:24.000000000 -0400 >+++ openswan-2.6.12/programs/pluto/rcv_info.c 2008-04-23 07:56:37.000000000 -0400 >@@ -19,6 +19,7 @@ > #include <string.h> > #include <unistd.h> > #include <errno.h> >+#include <fcntl.h> > #include <sys/types.h> > #include <sys/socket.h> > #include <sys/un.h> >@@ -281,6 +282,7 @@ info_handle(int infoctlfd) > int infofd; > err_t err; > struct ipsec_policy_cmd_query ipcq; >+ unsigned long fcntl_arg; > > infofd = accept(infoctlfd, (struct sockaddr *)&info_client_addr > , &info_addr_len); >@@ -300,6 +302,13 @@ info_handle(int infoctlfd) > return; > } > >+ /* >+ * set CLOEXEC it to suppress selenux avc denials on exec >+ */ >+ fcntl_arg = fcntl(infofd, F_GETFD); >+ fcntl_arg |= FD_CLOEXEC; >+ fcntl(infofd, F_SETFD, fcntl_arg); >+ > switch (ipcq.head.ipm_msg_type) > { > case IPSEC_CMD_QUERY_HOSTPAIR:
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 442333
:
302337
|
302339
|
303301
| 303484