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 147587 Details for
Bug 227720
SELinux policy doesn't allow bind(2) on raw sockets
[?]
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.
Test mini-app that shows bind(2) failure with SELinux
bindicmp.c (text/x-csrc), 464 bytes, created by
Bhavesh Davda
on 2007-02-07 18:55:57 UTC
(
hide
)
Description:
Test mini-app that shows bind(2) failure with SELinux
Filename:
MIME Type:
Creator:
Bhavesh Davda
Created:
2007-02-07 18:55:57 UTC
Size:
464 bytes
patch
obsolete
>#include <sys/types.h> >#include <sys/socket.h> >#include <netinet/in.h> > > >int main(int argc, char *argv[]) >{ > int raw_socket; > struct sockaddr_in localAddr; > > raw_socket = socket(PF_INET, SOCK_RAW, IPPROTO_ICMP); > localAddr.sin_family = AF_INET; > localAddr.sin_addr.s_addr = 0; > localAddr.sin_port = 0; > if (bind(raw_socket, (struct sockaddr *) &localAddr, sizeof(localAddr)) == -1) { > perror("bind"); > } > close (raw_socket); > return 0; >} >
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 Raw
Actions:
View
Attachments on
bug 227720
: 147587